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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to Fetch Common records from The Slicer selection in Power BI

I have one dataset which contains the report and mete data information. Based on report name selection user would like to see what are all the common tables and columns used in those reports, Below is the Metadata and expected Outputs. Is there any solution for this. Appreciate your help.
Thanks,

Sivan_0-1649055860367.pngSivan_1-1649055906846.png

 

Sivan_2-1649055949401.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Here's my solution.

1.Separate the main table into three tables, one with Report column and Table column, another with Report column and Column column, and the third one as long as the Report column. Created by calculated tables.

Table = DISTINCT(SELECTCOLUMNS('Main',"Report",[Report],"Table",[Table]))
Column = DISTINCT(SELECTCOLUMNS('Main',"Report",[Report],"Column",[Column]))
Report = DISTINCT(Main[Report])

Relationships:

vstephenmsft_0-1649312278998.png

 

2.Create two measure as the visual-level filters

IfTable = var _count=CALCULATE(COUNT('Table'[Table]),FILTER(ALLSELECTED('Table'),[Table]=MAX('Table'[Table])))
return IF(COUNT(Report[Report])=_count,1)
IfColumn = var _count=CALCULATE(COUNT('Column'[Column]),FILTER(ALLSELECTED('Column'),[Column]=MAX('Column'[Column])))
return IF(COUNT(Report[Report])=_count,1)

 

3.Create two visuals as follows, set show items when the value is 1.

vstephenmsft_1-1649312396029.png

vstephenmsft_2-1649312409722.png

 

Results:

vstephenmsft_3-1649312451595.pngvstephenmsft_4-1649312463280.png

vstephenmsft_5-1649312473401.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous  Firstly, thank you so much for your  response. Yes it's working as expected.

Anonymous
Not applicable

Hi @Anonymous ,

 

Here's my solution.

1.Separate the main table into three tables, one with Report column and Table column, another with Report column and Column column, and the third one as long as the Report column. Created by calculated tables.

Table = DISTINCT(SELECTCOLUMNS('Main',"Report",[Report],"Table",[Table]))
Column = DISTINCT(SELECTCOLUMNS('Main',"Report",[Report],"Column",[Column]))
Report = DISTINCT(Main[Report])

Relationships:

vstephenmsft_0-1649312278998.png

 

2.Create two measure as the visual-level filters

IfTable = var _count=CALCULATE(COUNT('Table'[Table]),FILTER(ALLSELECTED('Table'),[Table]=MAX('Table'[Table])))
return IF(COUNT(Report[Report])=_count,1)
IfColumn = var _count=CALCULATE(COUNT('Column'[Column]),FILTER(ALLSELECTED('Column'),[Column]=MAX('Column'[Column])))
return IF(COUNT(Report[Report])=_count,1)

 

3.Create two visuals as follows, set show items when the value is 1.

vstephenmsft_1-1649312396029.png

vstephenmsft_2-1649312409722.png

 

Results:

vstephenmsft_3-1649312451595.pngvstephenmsft_4-1649312463280.png

vstephenmsft_5-1649312473401.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors