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

Filter a visual based on max slicer value

Hi, 

 

I have a month number slicer which I use to get data from the start of the year until the month I selected :

 

adil_sdj_0-1685117588498.png

 

However, on the same page I have visuals which I would like to filter on the last month of the selection I made on the slicer. 

e.g. I have selected months 1 to 3 on my slicer and I would like to have a pie chart showing only data from March, and I want my pie chart to show only data from April if I change my slicer selection to 1-4.
I have not found any way to do this, it looks like you cannot create a visual filter or create a filtered table based on a slicer selection.

 

Thank you very much for your help.

 

2 REPLIES 2
Anonymous
Not applicable

Hi @vk_pbi ,

 

Thank you for your help, I have a calendar lookup table like this which I join to my data table which has a "Start of Month" column as well.

adil_sdj_0-1685118861752.png

I tried using a measure : 

Max Month Number = MAX(Calendar_Lookup_month[Month Number])
The measure is indeed equal to the max month in my slicer selection but I can't find a way to filter my Pie Chart based on this measure. For example I can't just add a filter Calendar_Lookup_month[Month Number] = Max Month Number.
vk_pbi
Resolver II
Resolver II

Hi @Anonymous 

It will be difficult to suggest without knowing your data model

I assumed that, you have custom dates table, create a month number column (MONTH([Date]) in your date table, if its not there, then adjust your measure to match the slicer value with your month number

I hope this will fix your issues

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.