Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi guys,
I have 4 main measures, cost, net, profit and gross. I've done a calculation group with tabular editor to calculate several ti measures like LM, LQ and LY.
My LY measure is not working, for any of the measures selected.
This is my calculated item :
CALCULATE( SELECTEDMEASURE(), DATEADD( 'Tab Dates'[Date], -1, YEAR ))
Pretty simple and it's not working. My first time in calculation groups. This is my visual:
Can anyone help me?
Thanks a lot
Pedro
Solved! Go to Solution.
Please try measure as:
CALCULATE( SELECTEDMEASURE(),PREVIOUSYEAR( 'Tab Dates'[Date])
If you still have the problem, please share your sample pbix file, that will be a great help.
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Please try measure as:
CALCULATE( SELECTEDMEASURE(),PREVIOUSYEAR( 'Tab Dates'[Date])
If you still have the problem, please share your sample pbix file, that will be a great help.
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@pedroccamaraDBI , is Tab Dates is calendar table marked as date table?
also, Year/Q/M is coming from Tab Dates?
refer Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |