Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello !
I have a page with two sets of visuals : cards and graphs. The cards contain raw and computed KPIs with added MoM and YoY values for context interpretation. The graphs are barebones representation of each KPI's monthly trend (so "Month" is X).
On the same page I also have a slicer based on a MonthYear column (e.g. 'March-2024').
My goal is to have this one slicer affect those two sets of visuals differently : the month and the year (so the whole slicer) affect the cards but only the year should affect the graphs.
I know it is possible to achieve this result by having two slicers (a MonthYear one and a Year one) and playing with interactions as it is what I currently did (see image included). However having two filters, one for each set of visual, could be confusing and for user experience's sake I'd want to reduce that number.
I attempted to do that with measures by having one extract the year value from the slicer and then using that as a base to compute the values that need to be shown but I always run into some form of limitation (one being that measures are calculated when you open the report and not when a user is changing the value selected in the slicer). I also learned that measures shouldn't be used to return more than one value.
I'm new to Power BI so I still have a lot of blindspots and the solution might be simple.
Is there any way to achieve the result I want without using two slicers ?
Solved! Go to Solution.
Hello @Matt_VBC ,
Yes. Please find the answers below,
1. MAX(Orders[Order Date].[Year]) is the year of each date value in the X-axis of the line chart.
2. It is based on the requirement. your requirement can be achieved only if there we keep the tables independent because you need a different granular data. ie, Slicer is in Month level but you need of data one level up at year level that give you more than one record for each slicer selection.
Please Accept as a solution if my post solves your problem
Hi @Matt_VBC ,
You can achieve it as below,
dont create a relation between Date Dim and Orders (your source table). these two tables should be independent. then write below two measures,
In this case i have used the Order Date column in the X-axis of line chart and slicer is coming from Date Dim table
Hello @Aburar_123
Thanks for the reply ! If I understood it correctly this trick with measures recreates artificially what relationship does but with more control, right ?
I have two questions :
Thanks again !
Hello @Matt_VBC ,
Yes. Please find the answers below,
1. MAX(Orders[Order Date].[Year]) is the year of each date value in the X-axis of the line chart.
2. It is based on the requirement. your requirement can be achieved only if there we keep the tables independent because you need a different granular data. ie, Slicer is in Month level but you need of data one level up at year level that give you more than one record for each slicer selection.
Please Accept as a solution if my post solves your problem
Hello @Matt_VBC,
Thank you for reaching out to the Microsoft Fabric Community Forum.
I have reproduced your scenario in Power BI Desktop using a single Month+Year slicer and I got the expected output as per your requirements.
For your reference, I’m attaching the .pbix file where everything is implemented step-by-step. Feel free to adapt it to your dataset.
Best Regards,
Ganesh singamshetty.
Hello @v-ssriganesh !
Thanks for the reply.
I opened your file and it I'm running into the same problem when I attempted this type of solution : the graph displays one specific year (here 2024) and it is unresponsive to whatever selection is made using the slicer, meaning if I change the selection from let's say July-2023 to November-2025 the graph doesn't show the monthly trend on the 2025 year but stays on the same year.
Additionally, I witnessed the following details :
- the graph you made only goes from December to July for some reason
- the cards you included that contain the measures "NewClients_SelectedMonth" and "NewClients_MoM_Change" sometimes return values and sometimes not without a clear pattern. The expected behavior is that only the MoM should be empty in case a value in 2023 (the earliest year) is selected as no data precedes this date. NewClients_SelectedMonth should always return something if a value is selected in the slicer, I don't understand why here it doesn't.
@Matt_VBC Calculated columns are calculated when refreshing a report. Measures are dynamic based on user interaction. What you want is a Complex Selector: The Complex Selector - Microsoft Fabric Community