March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I have an issue regarding Last YTD, I have this sample data
I would like to achieve the total data 2022 till Aug.. because the current year data only available till August 2023.
I understand to use DatesYTD function but when I tried to use with flexible date somehow not working.
Below is the DAX I tried
m_LY FY = CALCULATE(SUM(Value), DATESYTD(dateadd('Date'[Date],-1,Year),FORMAT(MAX(Completions[Training Record Completed Date]),"MM/YY")))
Would appreciate any help provided! Thank you!
Solved! Go to Solution.
Hi,
PBI file attached.
Hope this helps.
Try the following code, and see if is what you need
m_LY FY =
CALCULATE(
SUM(Value),
SAMEPERIODLASTYEAR(
'Date'[Date]
)
)
Thanks for replying, I'm using the calculation but seems it's still showing me "Total all 2022"
While I am trying to achieve total 3774
as reference I put the pbix file here PBI File
I would like to use "Date" Table to show the dates.
Thank you so much for the help, so I should create the "Date" Table following the Transaction table is it?
Thank you for help!
You are welcome. Yes.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |