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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
benford888
Frequent Visitor

Dynamic Filter

I want to measure that allows a visual to show the last 13 months of data if the data is not filtered.

No Filter appliedNo Filter appliedlast 13 months data when no filter appliedlast 13 months data when no filter applied

But filter to the defined daterange if a date range or finacial year is selected

2023/2024 Fin year selected2023/2024 Fin year selectedFin Year Filtered.PNG

1 ACCEPTED SOLUTION

Hi @benford888 
This solved thread may help you refer below one,  Please feel free to contact us if you have any further questions.
Solved: How to display the last 13 months of data in a Pow... - Microsoft Fabric Community

Thanks.

 

View solution in original post

10 REPLIES 10
v-priyankata
Community Support
Community Support

Hi @benford888 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

 

Hi Priyankata,
I have reviewed the code and it appears that it's doing the opposite of what i want. The way the code works at the moment it filters for the last 13 months when a filter is selected, and shows all months when a filter is not selected. I want the opposite to occur. I want the default view to be rolling 13 months and the filter to show the filtered data output

Hi @benford888 
This solved thread may help you refer below one,  Please feel free to contact us if you have any further questions.
Solved: How to display the last 13 months of data in a Pow... - Microsoft Fabric Community

Thanks.

 

Hi @benford888 

Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.

benford888
Frequent Visitor

I couldn't get the Complex Selector to work for my specific issue. any other ideas are welcome

v-priyankata
Community Support
Community Support

Hi @benford888 

Thank you for reaching out to the Microsoft Fabric Forum Community.
@Greg_Deckler Thanks for the inputs.

@benford888 - I hope you had a chance to try the suggestion from the user. Has the issue been resolved? If you encounter any further problems, please reach out to the community for assistance.

Thanks.

Hi. No, that solution didnt work for me. I'm still trying to find a solution

Hi  @benford888 
I have repro your scenario using dummy data. Please review the attached PBIX file and let us know if it is helpful. If you continue to experience any issues, feel free to reach out to the community.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know. 

Best Regards,
Priyanka.

Greg_Deckler
Community Champion
Community Champion

@benford888 Try using a Complex Selector: The Complex Selector - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I'll give it a go. thanks Greg

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.