Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

how to create a new table that the data comes from different excel sheets and filter visuals by it

hi team,

1. I have an excel file that contains 4 sheets. 

 

2. I have uploaded the excel file with above 4 sheets into powerBI Desktop, and create 4 charts already.

   Now I want to filter the 4 charts by SFDC, CMN and CMID together. But I can't do this directly, the behavior now is that if i add sheet1->CMN column into 'Filters on this page' section, then only the chart based on sheet1 will be filtered, the rest 3 charts won't be affected.  If I add sheet2->CMN into filter sections as well, then there will be two CMN fitlers which is unexpected.

 

Help needed:

How can i filter the 4 charts in 1 page by SFDC, CMN and CMID together?? I need some data processing by DAX to build relationship for these 4 sheets, right? how to achieve it?

 

 

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

you can create 3 lookup tables (SFDC, CMN and CMID) each containing one column of all unique values. Example:

SFDC= 

DISTINCT (UNION ( VALUES (Table1[SFDC]),VALUES (Table2[SFDC]),VALUES (Table3[SFDC]),VALUES (Table4[SFDC])))

then connect the three new tables with the original 4 tables with one to many relationships (total 12 relationships)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@tamerj1  thank you for the solution. I tried in powerBI Desktop and It works.

tamerj1
Super User
Super User

Hi @Anonymous 

you can create 3 lookup tables (SFDC, CMN and CMID) each containing one column of all unique values. Example:

SFDC= 

DISTINCT (UNION ( VALUES (Table1[SFDC]),VALUES (Table2[SFDC]),VALUES (Table3[SFDC]),VALUES (Table4[SFDC])))

then connect the three new tables with the original 4 tables with one to many relationships (total 12 relationships)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors