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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
cyboysen
Regular Visitor

Dynamically filtering slicers involving a calculated table

Hi all, I'm a Power Bi noob and first time poster, so my apologies in advance for any forum faux pas.

I am attempting to create a visual in Power Bi with a bar graph and two slicers.  My primary data source is a table named tbl_MasterListComplete.  Here is some example data:

 

Hiring ClassCandidate NameInterviewer AInterviewer BCompleted Ramp Month 1Completed Ramp Month 2Completed Ramp Month 3
June 2022ScoobyBrianKateYesYesYes
July 2023ShaggyJaneJohnYesYesNo
July 2023VelmaZachJaneYesNoNo
September 2024FredKateJaneNoNo

No


I created measures in Power Bi to count the # of "Yes's" in each ramp month.  These are the data values for a bar graph.

The first slicer "Hiring Class" uses the Hiring Class column to select which hiring classes to display counts for.

ex. June 2022, July 2023, September 2024

I am trying to make a second slicer "Interviewer Name" that is a list of only the unique names from columns Interviewer A and Interviewer B:

ex. Brian, Jane, John, Kate, Zach

I want this list to dynamically adjust based on the Hiring Class selection.

ex. If only July 2023 is selected in the Hiring Class slicer, then the Interviewer Name slicer should only display Jane, John, & Zach, and the bar graph should only display counts for any selected interviewers for that hiring class.

I do not know how to accomplish this behavior.  I have made a calculated table "tbl_DistinctInterviewers" of all the distinct names from both Interviewer A/B columns, but I can't have 2 active relationships between tbl_MasterListComplete and tbl_DistinctInterviewers.

Any insight or recommendations would be greatly appreciated.  Thank you in advance!


1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

 

 

I want this list to dynamically adjust based on the Hiring Class selection.

 

 

Yeah, this is where it gets tricky.  What you will need to do is precompute a reference list with all distinct Interviewer names. This has to be a column, it cannot be a measure.  Measure cannot feed slicers. (Measures can be used as visual filters, though, so you can still achieve your goal.

 

This reference table needs to be disconnected from the data model. Then use the measure to read the selected values from the slicer, and check if the current row of the visual contains one of the values in either of the two interviewer columns. If it does, let the measure return 1, else 0.  Then filter the visual by the measure value = 1.

View solution in original post

2 REPLIES 2
cyboysen
Regular Visitor

Thank you so much for your advice, which was hugely helpful in putting me on the right track!  It took a little figuring out and tinkering around, but I got it working how I wanted it to!  You're #1!

lbendlin
Super User
Super User

 

 

I want this list to dynamically adjust based on the Hiring Class selection.

 

 

Yeah, this is where it gets tricky.  What you will need to do is precompute a reference list with all distinct Interviewer names. This has to be a column, it cannot be a measure.  Measure cannot feed slicers. (Measures can be used as visual filters, though, so you can still achieve your goal.

 

This reference table needs to be disconnected from the data model. Then use the measure to read the selected values from the slicer, and check if the current row of the visual contains one of the values in either of the two interviewer columns. If it does, let the measure return 1, else 0.  Then filter the visual by the measure value = 1.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors