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
MeMedesimo
New Member

Use same filter value for to separated tables

Hi there,

 

I am trying to create an interactive dashboard that will show 2 visuals once the user selected the desired filter.

 

Let's say I have the following two files loaded into PowerBi Desktop:

 

COUNTRYGENDERTOTAL COSTUMERS
USAM45
USAF65
UKM67
UKF86
FINLANDM23
FINLANDF21
SPAINM13
SPAINF15

 

and

 

COUNTRYAGE BANDTOTAL COSTUMERS
USAChild56
USAAdult75
UKChild34
UKAdult98
FINLANDChild23
FINLANDAdult45
SPAINChild65
SPAINAdult23

 

I am trying to create 2 visuals (one for GENDER and one for AGE BAND) and I would like to create a unique filter for COUNTRY so that once the user selects USA only, the 2 visuals updates automatically.

 

Unfortunately, I need to put both filters in the "Filters on this page" section to control both visuals, whereas I would like just to have one since the values in COUNTRY are the same, but due to the duplicates, I can't join.

 

Thanks

 

Simone

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Create a separate Country dimension table using

Country = DISTINCT( UNION(
   VALUES('Table1'[Country],
   VALUES('Table2'[Country]
))

create relationships from the new table to both existing tables and then place your filter on the new table.

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Create a separate Country dimension table using

Country = DISTINCT( UNION(
   VALUES('Table1'[Country],
   VALUES('Table2'[Country]
))

create relationships from the new table to both existing tables and then place your filter on the new table.

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.