cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samucaeq
New Member

Filters and data tables

I have three data tables with some common columns, mainly descriptive fields.
The other columns have fields with numeric values.
Each table contains data of a particular parameter of a unit.
I did not build the tables, I just want to use them to analise some key aspects.
I want to create a report with three data matrix, each one for a specific parameter, but, for easyness of use, I want to have just one set of filters (the common columns).
How can I set define the relation between the tables' columns? I mean, how can I inform to the system that Column 1 of Table 1 corresponds to Column 2 of Table 2 and column 1 from Table 3, for instance? Is it necessary to declare such relations or are there a better way to build these filtering strategy?
Regards

1 ACCEPTED SOLUTION
BILASolution
Solution Specialist
Solution Specialist

Hi @samucaeq

 

I think you're looking for a separated table. For example, you have three tables with sales and customer by territories (UsaSales, EuropeSales and AsiaSales). Then, you can create a new table only for Customers taken from each table.

 

Customer = 

DISTINCT
(
	UNION
	(
	    SELECTCOLUMNS(AsiaSales;"CustomerID";AsiaSales[CustomerID]);    
SELECTCOLUMNS(EuropeSales;"CustomerID";EuropeSales[CustomerID]); SELECTCOLUMNS(USASales;"CustomerID";USASales[CustomerID]) ) )

 

NOTE: You need to create the relationonship between the four tables.

 

 

relashion.png

 

 

 

Now, you're able to filter the three tables by The Customer one.

 

re.png

 

 

 

I hope this helps

 

Regards

BILASolution

View solution in original post

3 REPLIES 3
v-yulgu-msft
Microsoft
Microsoft

Hi @samucaeq,

 

To filter multiple table visuals via a single slicer, you should create corresponding relationships between these tables based on common fields. Please see this article: Create and manage relationships in Power BI Desktop

 

If you still have any question about relationship configuration, please illustrate your requirement or issue with sample data. I need to know your table structure.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BILASolution
Solution Specialist
Solution Specialist

Hi @samucaeq

 

I think you're looking for a separated table. For example, you have three tables with sales and customer by territories (UsaSales, EuropeSales and AsiaSales). Then, you can create a new table only for Customers taken from each table.

 

Customer = 

DISTINCT
(
	UNION
	(
	    SELECTCOLUMNS(AsiaSales;"CustomerID";AsiaSales[CustomerID]);    
SELECTCOLUMNS(EuropeSales;"CustomerID";EuropeSales[CustomerID]); SELECTCOLUMNS(USASales;"CustomerID";USASales[CustomerID]) ) )

 

NOTE: You need to create the relationonship between the four tables.

 

 

relashion.png

 

 

 

Now, you're able to filter the three tables by The Customer one.

 

re.png

 

 

 

I hope this helps

 

Regards

BILASolution

BeemsC
Resolver III
Resolver III

I don't really understand the question.
Are you having trouble creating relationships within Power BI?

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Top Solution Authors