Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Solved! Go to Solution.
@TimmK
Then try
Measur =
IF (
MIN ( 'Date'[Date] ) <= TODAY (),
CALCULATE ( [Cash], 'Date'[Date] <= MAX ( 'Date'[Date] ), ALL ( 'Date' ) )
)
*Edited
Changed MAX to MIN in the IF statement
Hi @TimmK
Please try
Measur =
CALCULATE (
[Cash],
'Date'[Date] <= MIN ( 'Date'[Date] ),
'Date'[Date] <= TODAY (),
ALL ( 'Date' )
)
I just tried it, but it results in exactly the same as previously, I still see the months October, November, December 2022 in the visual.
@TimmK
Then try
Measur =
IF (
MIN ( 'Date'[Date] ) <= TODAY (),
CALCULATE ( [Cash], 'Date'[Date] <= MAX ( 'Date'[Date] ), ALL ( 'Date' ) )
)
*Edited
Changed MAX to MIN in the IF statement
Thank you very much. 🙂
It works with MAX.
I adapted the solution a bit and now it works as it should:
IF(
MAX( 'Date'[YM] ) > FORMAT( TODAY(), "YYYYMM" ),
BLANK(),
CALCULATE([Cash], FILTER( ALL( 'Date' ), 'Date'[Date] <= MAX( 'Date'[Date] ) )
))
@TimmK , Assume you have table with date
Measure =
var _max = maxx(allselected(Table), Table[Date])
return
CALCULATE([Cash],FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date]) && Date[Date] <= _max))
Thanks, I tried it, but it did not work, the result is the same as before.
var _max = MAXX(ALLSELECTED(Cash),Cash[Datum])
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |