Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 20 | |
| 13 | |
| 10 |