Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to create a measure the calculates the running total of a value, if the date is past "today" it should show blank.
My current measure shows a correct running total but I can't get make it show blank for the dates after today, for those dates it shows the "max" of the value.
My "base"-measure looks like this:
Solved! Go to Solution.
Wrap it in an IF, e.g.
ValueRunningTotal =
IF ( MIN('Master Time Table'[Date]) <= TODAY(),
VAR value=
CALCULATE (
SUM ( 'projects'[Value] ),
'projects'[category] = "Xyz123",
USERELATIONSHIP ( 'projects'[DoneDate], 'Master Time Table'[Date] ),
DATESMTD ( 'Master Time Table'[Date] )
)
RETURN
value
)
Wrap it in an IF, e.g.
ValueRunningTotal =
IF ( MIN('Master Time Table'[Date]) <= TODAY(),
VAR value=
CALCULATE (
SUM ( 'projects'[Value] ),
'projects'[category] = "Xyz123",
USERELATIONSHIP ( 'projects'[DoneDate], 'Master Time Table'[Date] ),
DATESMTD ( 'Master Time Table'[Date] )
)
RETURN
value
)
Big thanks! I did not know you could wrap the whole thing in an IF-statement like that. I only tried to wrap the revenue-variable itself in an IF-statement without any luck.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |