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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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