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
AlexAlberga727
Resolver II
Resolver II

Suppressing Future Dates - When reviewing % Change

Hey Everyone!

 

My goal - To compare change from prior year.

 

I'm currently calculating a % of change from the Prior Year with the below Formula. I included an IF statement in hopes to supress future dates from the calculations.

 

% Change in Rev_ = 
IF( 
    AND( 
    [Total Revenue PY] = 0, 
    [Total Revenue] = 0),
        BLANK(),

IF( 
    AND(
    [Total Revenue PY] = 0,
    [Total Revenue] > 0),
1,

IF( LASTDATE( dDateTable[Date] ) > TODAY() , BLANK(), 

( [Total Revenue] - [Total Revenue PY] ) / [Total Revenue PY] )))

 

My Issue - 

The formula is identifying the last record in the data. If filtered to current month the LastDate = EoM Date. Therefore I am only able to review date ranges which have past.

 

If today was within the first week of the month - I'd like to compare up to that date. I don't want to see that the change in rev from last year is negative because we are only a couple days within the month. 

 

Is there a way to create a measure that would handle the same calculation - But instead would ask:

IF Record is > TODAY opposed to asking is LASTEDATE > TODAY.

 

If there are better wats in handling this, please let me know. Thanks!

 

 

 

 

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

Didn't quite get this one. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.