The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
This is my query on here, no doubt the first of many! 🙂
This should be a straightforward query to answer but any help will be greatly appreciated.
I've used the following DAX in previous reports but for some reason it is now working on my latest report. I have a line item report from our SAP system of all financial transactions for the year, I simply want to summarise it and then filter based on the period selected in order to update a YTD calculation.
The DAX I used is -
Solved! Go to Solution.
Thanks so much, that worked perfectly. No idea why it thought there was more than one row but clearly there must have been.
Thanks again, really appreciate your help 🙂
Based only on your DAX my guess would be that 'Date Updated' currently has more than one row:
YTD Actuals =
CALCULATE (
SUM ( 'New FPR'[Actuals] ),
'New FPR'[Fund Center Group] <> "Admin-Prog Hierarchy",
'New FPR'[Dates.Period] <= VALUES ( 'Date Updated'[Period] )
)
See if this works:
YTD Actuals =
CALCULATE (
SUM ( 'New FPR'[Actuals] ),
'New FPR'[Fund Center Group] <> "Admin-Prog Hierarchy",
'New FPR'[Dates.Period] <= MAX ( 'Date Updated'[Period] )
)
Thanks so much, that worked perfectly. No idea why it thought there was more than one row but clearly there must have been.
Thanks again, really appreciate your help 🙂