Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all,
I have a date filter in my report with an overview of all months.
Now I would like to create a measure that gives me the year-to-date sum of a column when I click on for example April.
I have tried it with TOTALYTD()
expression : sum of my column
dates : column date
It however doesn't make sense and obviously the outcome of the measure is incorrect.
Anyone knows how to do it or can point me in the right direction?
Regards
Solved! Go to Solution.
@YBZ , if you using month year slicer from the date table. It should work
YTD Sales = Totalytd(SUM(Sales[Sales Amount]),'Date'[Date],"12/31")
or
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw
thanks, that works! I had initially a wrong date format 🙂
@YBZ , if you using month year slicer from the date table. It should work
YTD Sales = Totalytd(SUM(Sales[Sales Amount]),'Date'[Date],"12/31")
or
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
77 | |
60 | |
58 | |
58 |
User | Count |
---|---|
151 | |
113 | |
99 | |
80 | |
72 |