Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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 )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |