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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Conditional Filter

Hello, 

 

I have to create a fiancial report which be refreshed everyday. In this report, I would like make a comparaision between the sales of this year and and other year (which would have been chose by the companie with a filter "2019, 2020, 2021").

 

My issue is that 2022 is not finished, there are some months which don't have any data because it's on the future. So, for example I would to compare the first five months of 2022 with the first five months of 2021, but if I make that, the comparaision won't be good because 2021 has seven months more than 2022. 

 

I understand that the companie could put the filter manually, but our goal is to make the report refreshing automatically, so when we will be on June, the filter will take June and the comparaison between months will be good. 

 

Sorry if it's not understable, I can't give more information because it's private Data ...

 

Thank you very much in advance ! 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

You can definitely achieve it. It's the way it should be. The best thing you can do is to learn from the ground up and from the best (SQLBI.com).
Learn these patterns:
https://www.daxpatterns.com/time-patterns/

In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂

View solution in original post

1 REPLY 1
SpartaBI
Community Champion
Community Champion

You can definitely achieve it. It's the way it should be. The best thing you can do is to learn from the ground up and from the best (SQLBI.com).
Learn these patterns:
https://www.daxpatterns.com/time-patterns/

In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors