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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

8 REPLIES 8
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

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.