Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |