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
powerlight1
Frequent Visitor

Dynamic measure filtering

Hi Community,

 

I am trying to create a report with multiple slicers that filter the underlying table dynamically.  Let me explain.

I have an underlying sales by date table:

powerlight1_0-1752115684892.png

 

Firstly, the user would select from the State and Date slicers.  For example 

powerlight1_1-1752115796222.png

Then, I will have a third filter that have predefined Average Sales Band, e.g. 100-150, 150-200, 200-250, so on ...

Lastly, I will then need to create a third slicer to filter the Average Sales by State and Product.

 

I can not create a summarized/calculated table because the date/period will need to be dynamic based on the the Date slicer.

 

What I have done is created a measured called Average Sales, which is just AVERAGE(SALES) and based on Slicer1 & Slicer2 (above) I am able to produce this results:

powerlight1_2-1752116508818.png

 

What I next want to do is that in Slicer3 the predefined Average Sales Band and if the user select "100-150" then only return Banana and Oranges.

How do I complete the last step?

 

 

 

1 ACCEPTED SOLUTION
v-tejrama
Community Support
Community Support

Hi @powerlight1,

 

Thank you for explaining your requirement so clearly and also for providing the sample data. I tried the same scenario in Power BI and your logic is absolutely right. The only final step you were missing was after creating your IsInSelectedBand measure, you need to select the table visual (which shows product and average sales), and then drag IsInSelectedBand into the "Filters on this visual" pane, and set it to 1.

 Once this is done, the table will only show those products whose average sales fall into the selected band, based on the state and date filters you applied in slicers. I tested with your values and it’s working exactly as expected.

 

Please find the attached pbix file for your reference.

 

Thanks again for the nice scenario!

View solution in original post

3 REPLIES 3
v-tejrama
Community Support
Community Support

Hi @powerlight1,

 

Thank you for explaining your requirement so clearly and also for providing the sample data. I tried the same scenario in Power BI and your logic is absolutely right. The only final step you were missing was after creating your IsInSelectedBand measure, you need to select the table visual (which shows product and average sales), and then drag IsInSelectedBand into the "Filters on this visual" pane, and set it to 1.

 Once this is done, the table will only show those products whose average sales fall into the selected band, based on the state and date filters you applied in slicers. I tested with your values and it’s working exactly as expected.

 

Please find the attached pbix file for your reference.

 

Thanks again for the nice scenario!

Hi @powerlight1 ,

 

Just checking in have you been able to resolve this issue? If so, it would be greatly appreciated if you could mark the most helpful reply accordingly. This helps other community members quickly find relevant solutions.

 

Thank you.

Perfect! Thanks again.

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.