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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Vikas_Mattela
Frequent Visitor

How to show only Up to Last Month data based on Current Date

Hi,

 

In below visual I am showing comparion between Current Year and Last Year. But since other visual dependent on tables, where it has data till last month (septmber). So for this visual I would like to show Current Year till September only, Last Year will be till December.

 

Vikas_Mattela_0-1696611029444.png

 

 

2 REPLIES 2
mh2587
Super User
Super User

MaxDateIsToday = IF(MAXX(YourTable, YourTable[YourDateColumn]) <= TODAY(), 1, 0)
//Use this a visual filter or page filter 

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Thanks for your reply @mh2587 . I have folllowed same thing, but my requirement is Last Year values has to show till December. Current Year has to show till October. But as per your formula its filtering both CY and LY.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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