帆软bi 观远bi_与电源bi一起加入

帆软bi 观远bi

I’ve described the basics of joins in my first article. Hope you have found it helpful. In this article, I will show you how these joins can be done using Power BI’s Power Query and also in R using dplyr.

我已经在第一篇文章中介绍了联接的基础知识。 希望对您有所帮助。 在本文中,我将向您展示如何使用Power BI的Power Query以及在R中使用dplyr来完成这些联接。

Power BI has a “Click” type ( Using the mouse alot) UI while R has a “Typing” interface (Using the keyboard alot).

Power BI具有“单击”类型(大量使用鼠标)UI,而R具有“键入”界面(大量使用键盘)。

I love both and hope you will too.

我俩都爱,希望你也一样。

Let’s get back to our little stick figures — useful right?

让我们回到我们的小棍子-有用吗?

Image for post
Image by author
图片作者

Let’s get into it!

让我们开始吧!

Let’s load in our data :) Two tiny data sets, but great for our examples.

让我们加载数据:)两个很小的数据集,但是对于我们的示例来说非常有用。

Image for post
Image by author
图片作者

Now that they are loaded, let’s go into Power Query

现在已加载它们,让我们进入Power Query

Image for post
Image by author
图片作者

Once I am in the Power Query side — I see my two data sets.

一旦进入Power Query一侧,我就会看到两个数据集。

Image for post
Image by author
图片作者

Let’s go to Merge queries and get started!

让我们去合并查询并开始吧!

Image for post
Image by author
图片作者

Be very careful about the placement of the joins — the top data set is the left hand side of the join and the bottom data set is the right hand side of the join. If they are not arranged properly, you will get the opposite result.

请特别注意联接的位置-顶部数据集是联接的左侧,底部数据集是联接的右侧。 如果它们的排列不正确,您将得到相反的结果。

If you are confused — check out my first article about the left and the right.

如果您感到困惑,请阅读我的第一篇关于左右的文章

Image for post
Image by author
图片作者

One important thing — let’s select the column we want to join on or the “connection”.

一件重要的事情-让我们选择要加入的列或“连接”。

Image for post
Image by author
图片作者

I chose the left outer join but it’s the same as a left join. There are many terminologies out there — left hand side, first data set, data set A etc. At the end of the day — we want to see the rows that are common and also rows that are not found when compared. Also, in this image, there is only one “connection” column. You are not limited to using just that. You can choose an additional column to support a join as well.

我选择了左外部连接,但它与左连接相同。 那里有很多术语-左侧,第一个数据集,数据集A等。最终,我们希望看到比较时常见的行和未找到的行 。 同样,在此图像中,只有一个“连接”列。 您不仅限于使用它。 您也可以选择其他列以支持联接。

After I make this selection, I will be given the option to expand.

选择之后,将提供扩展选项。

Let’s hit the expand button.

让我们点击展开按钮。

Image for post
Image by author
图片作者

Ta-Da!

塔达!

Image for post
Image by author
图片作者

Here you can see the inner join and left anti results.

在这里,您可以看到内部联接和左反结果。

Let’s talk a little about the query settings pane on Power Query. This is very useful for our example. Why? because with one click — you can go back to your merge step and change any of the join selection you have as see previously.

让我们谈谈Power Query上的“查询设置”窗格。 这对于我们的示例非常有用。 为什么? 因为只需单击一下即可—您可以返回到合并步骤,并更改您所拥有的任何联接选择,如先前所示。

Image for post
Image by author
图片作者

Brings you back here for other join selections.

带您回到这里进行其他联接选择。

Image for post
Image by author
图片作者

I get it, it may seem over simplistic, the data sets here only have 5 rows and there aren’t any duplicates, data type errors, typos on the join, missing data, missing column..etc, I’ll write more about this in another article.

我明白了,它似乎过于简单化,这里的数据集只有5行,没有任何重复,数据类型错误,联接上的错字,丢失的数据,缺少的列..etc,我将写更多有关这在另一篇文章中。

Think about it this way, if you understand these basics and can build queries on a small data set, Power BI will do the heavy lifting. The same query with minor tweaks can be applied from a 5 rows data set to a 50K rows data set.

如果您了解这些基础知识并且可以在较小的数据集上建立查询,则以这种方式进行思考,Power BI将会承担繁重的工作。 可以对细微调整的同一查询从5行数据集应用于50K行数据集。

Hmm…let’s back to our stick figures.

嗯...回到我们的简笔画。

Image for post

Now let’s take a look at R. Another great tool.

现在让我们看一下R。另一个很棒的工具。

Let’s load in our data and package using “Import data” and also load in the Tidyverse. Tidyverse is a collection of R packages that makes data wrangling fun and easy (sometimes).

让我们使用“导入数据”加载数据和包,并加载Tidyverse。 Tidyverse是R程序包的集合,使数据整理变得轻松有趣(有时)。

I’m going to answer the same questions I had from my first article using the below code. Just 2 main lines, but enough to answer it with some tweaks.

我将使用以下代码回答我在第一篇文章中遇到的相同问题。 仅有2条主线,但足以进行一些调整。

library(tidyverse) # loading Tidyverse package -- for dplyr#who is still with the company?Dataset_2007 %>% 
inner_join(Dataset_2020, c("Name"))#who is no longer working for the company in 2020?Dataset_2007 %>%
anti_join(Dataset_2020, c("Name")) #who is new to the company in 2020?Dataset_2020 %>% anti_join(Dataset_2019,c("Name"))

Let’s break this down.

让我们分解一下。

Image for post

There you have it!

你有它!

Some join basics using Power BI and R. A few clicks with Power BI and a few lines of code using R. Both are fun for data wrangling.

有些使用Power BI和R结合了基础知识。使用Power BI进行了几次单击操作,使用R进行了几行代码。对于数据整理来说,两者都很有趣。

Hope you like this article! Stay safe!

希望你喜欢这篇文章! 注意安全!

翻译自: https://towardsdatascience.com/joins-with-power-bi-bde7de3e2181

帆软bi 观远bi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
帆软BI观远BI是两种常见的商业智能软件,用于数据分析和报表制作。性能测试是评估软件在处理大量数据和用户访问时的表现的过程。 首先,对于帆软BI的性能测试,我们可以通过以下几个方面来评估其性能: 1. 数据加载速度:测试在大规模数据集下,帆软BI的数据加载速度。通过模拟真实场景下的数据查询和分析,观察帆软BI的响应速度是否满足需求。 2. 报表生成速度:测试帆软BI在生成复杂报表时的速度。通过设计包含大量计算和图表的报表,进行测试并观察生成所需时间。 3. 并发用户性能:测试帆软BI在多个用户同时访问时的性能表现。通过模拟多个用户同时访问和查询数据,观察帆软BI是否能够有效处理并发请求。 对于观远BI的性能测试,我们也可以采用类似的方法: 1. 数据加载速度:测试观远BI在处理大规模数据时的加载速度。通过模拟数据查询和分析场景,观察观远BI在不同数据规模下的响应时间。 2. 报表生成速度:测试观远BI在生成复杂报表时的速度。通过设计复杂的报表,包含多个计算和图表元素,观测生成所需时间。 3. 并发用户性能:测试观远BI在多个用户同时访问时的性能表现。通过模拟多个用户同时访问和查询数据,观察观远BI是否能够处理并发请求并保持稳定的性能。 通过以上测试,我们可以对帆软BI观远BI的性能进行评估,并根据不同的需求选择适合的商业智能软件。无论是帆软BI还是观远BI,在解决组织的数据分析和报告制作方面,都有不同的优势和适用场景。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值