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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Creating Dynamic table visual based on another table visual

Hi Team,

I have three tables in Power BI (Country, State and Category) and based on these three tables, I have three slicers in my power bi report  and two table visuals. I have two table visuals also in my report. My first visual has column Country Name, State Name and Category Name and my second visual has column Country Name and State Name. My first visual should display data based on the slicer selection but my second table visual should contain only the combination which is not available in first visual. Suppose the tables has the below data

Country Table  State Table           Category Table 
    

 

     
Country IDCountry Name Country ID 

State ID

State Name CountryID StateIDCategoryID
C1Country1 C1S1State1 C1S1Cat1
C2Country2 C1S2State2 C1S1Cat2
   C2S3State3 C1S1Cat3
       C1S2Cat1
       C1S2Cat4
       C2S3Cat4

 

In this if Slicer for Country selects All and State selects all But Category selects only Cat1, Cat2 and Cat3. In this case first table visual should have values

Country NameState NameCategory Name
Country1State1Cat1
Country1State1Cat2
Country1State1

Cat3

Country1State2

Cat1

Then the second table visual should have only 1 row which is Country2 and State2 since that combination is not present in first table. Suppose if the slicer has only values Cat1 selected, then the first table visual has only 2 rows which is Country 1 and State1 and Country1 and State2. In this case also second table visual has only one row, which is Country2 and STate2. So 3rd slicer should not affect second table visual. It should contain all combinations which is not present in first table visual. But first and second slicer should affect both table visuals 

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Anonymous 
This is possible only using start schema data model plus some modifications. A factTable need to be introduced having the Country Name and State Name columns (that will be used in the 2nd table). Please refer to attached sample file for more details.

1.png2.png3.png

FilterMeasure = INT (  ISEMPTY ( FactTable ) )
Anonymous
Not applicable

Thanks for the reply. But In this solution, I need the filter criteria of Country and State to be applied in both visuals. If Country 1 is not selected, then it should not be present in two visuals. 

@Anonymous 
Not sure if I fully understand. However, please check new proposed solution as per attached sample file.

2.png1.png

FilterMeasure = INT (  ISEMPTY ( Category ) && NOT ISEMPTY ( State ) )

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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