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.
Hi there,
how to calculate measures with LASTDATE -1, -2, -3 etc (or maxstring) filter?
My basic code seems to be working:
=CALCULATE(Min('CEN'[Price]);LASTDATE(CEN[Data]))
I've tried like this but no effect.
=CALCULATE(Min('Ceneo'[Price]);LASTDATE(Ceneo[Data]-1))
Thanks for any help!
Solved! Go to Solution.
Day before =
VAR MaxDate =
MAX ( Ceneo[Date] )
RETURN
CALCULATE ( MIN ( Ceneo[Price] ), Ceneo[Date] = MaxDate - 1 )
Day before =
VAR MaxDate =
MAX ( Ceneo[Date] )
RETURN
CALCULATE ( MIN ( Ceneo[Price] ), Ceneo[Date] = MaxDate - 1 )
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 |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |