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.
i am using below dax for YTD & LYTD
Please do help me to fix this issue.
Hi @jkhan ,
What about this measure below?
LYTD = CALCULATE([YTD],DATEADD('Date'[Date],-1,YEAR))
Here is my test output.
If you still need help, please share your data smaple and your desired output so that we could help further on it.
Best Regards,
Cherry
I have modified my LTYD DAX to below
TS_YTD = TOTALYTD( SUM(PBI_FACT_UCAS_PO[ORDER_AMOUNT_SAR]),'date'[Date])
TS_LYTD = CALCULATE([TS_YTD],DATEADD('Date'[Date],-1,YEAR))
For 2019 YTD is working fine taking Date from JAN-2019 to JUN-2019
But LYTD is taking complete 2018 Year i.e. JAN-2018 to JUN-2018
For 2018 YTD is taking complete 2018 Year JAN-2018 to JUN-2018
And LYTD is taking complete 2017 Year i.e. JAN-2017 to JUN-2017
I want YTD and LYTD to work from JAN to JUN for any year selected in Slicer
If you have DAX please do share with me, I am trying to achive above result from long time but no success.
Best Regards
Jamsher
Thanks for Reply, I will test now and will share output.
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 |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |