使用Powerbi中的相同过滤器过滤两个表 [英] Filter two tables using the same filter in powerbi

查看:973
本文介绍了使用Powerbi中的相同过滤器过滤两个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个表显示PowerBI中的国家/地区数据,一个表包含不同国家/地区的销售数据,另一个表显示每个国家/地区的统计信息。然后,我有了一个仪表板,该仪表板具有来自每个表的图表。我想要一个过滤器来过滤两个表中的国家/地区列。
,即,如果我筛选美国,则会得到一个图表,该图表显示了美国的销售数据,以及一个图表,显示了有关美国的其他统计信息。

I have two tables showing country data in PowerBI, one table contains sales data in different countries and another shows stats about each country. I then have a dashboard that has a chart from each table. I want a single filter that filters on the country column in both tables. i.e. If I filter on the US, I will get a chart showing sales data in the US and a chart showing other stats about the US.

该国家/地区列在两个表中都有重复的值,因此很难在它们之间建立关系。而且,这些表之间并没有真正地相互关联,我只是过滤两个表中的数据,所以我的仪表板更新了两个图表。有什么帮助吗?

The country columns have duplicate values in both tables so doing a relationship between them is difficult. Moreover the tables are not really related to each other as such, I just to filter the data in both so my dashboard updates both charts. Any help?

推荐答案

创建一个仅包含唯一国家/地区列表的表,并从该表与其他两个表建立关系。然后将该表用作过滤器,而不要使用两个原始表中任何一个的国家/地区列。

Create a table that just has the list of unique countries and make a relationship from that table to both other tables. Then use that table for your filter, rather than the country column of either of the two original tables.

这篇关于使用Powerbi中的相同过滤器过滤两个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆