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 community,
YTD Sum =
VAR CurrentMonth = 10
RETURN
TOTALYTD([Sales Measure]
, 'Dates'[Date]
, 'Dates'[Month] <= CurrentMonth)
I want my Sales + Forecast Sum to just add up the red circled values. How can I archieve this?
DAX still is so confusing to me.. I would also appreciate any suggestions of improving my DAX code!
Thanks in advance!
Cheers, Myriam
Solved! Go to Solution.
Okay I think I found out myself. Dunno if thats the "beste" solution, but this is working in my case:
Okay I think I found out myself. Dunno if thats the "beste" solution, but this is working in my case:
@MyriamW I don't mean to offend, but you're doing this all wrong. Most of all, you're hard coding values into variables which means you're going to need to update this every month.
Could you please supply some sample data?
Hi @littlemojopuppy , thanks for your reply.
I should have said that of course in my real report I am not hardcoding any values. I do have variables with MONTH(TODAY()) etc. But as the sample data (I just used some from MS) is not actual data that wouldn't work, and for time reasons I just hardcoded to display my issue.
You can find my sample pbix here: SampleCalculateForecast.pbix
(Hope it is working, I am not able attach the file directly)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |