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
This has been troubling me for the entire day and I'd really appreciate some help on the matter.
I have the following formula:
CountCallsYTD = CALCULATE(COUNT(Actions[ID_Action], DATESYTD(Calendar[ID_DateText])))
Which works just fine and produces the following chart:
Now what I'd like to add to this is a "target" cumulative number of Actions per month, so for example, if on average we need to make 30 calls a month, January would show 30, February would show 60 and so on until December (which would show 360).
I had to do something similar with daily targets but that was way easier, I've tried many ways to do this but it seems I just lack the knowledge necessary for such a simple thing, could I get some help on this :(?
Solved! Go to Solution.
In this scenario, since your the granularity in your fact table is day level, it's better to assign the target value on day level as well. I assume you have a full calcendar table. Firstly, you need to add a "YearMonth" column in this table for grouping.
YearMonth = YEAR('Table'[Date]) & "" & MONTH('Table'[Date])
Then just add a column for Daily Target.
Daily Target = 30/ CALCULATE(COUNTA('Table'[Date]),ALLEXCEPT('Table','Table'[YearMonth]))
Now you should be able to cumulative sum with a fixed 30 on month level.
Regards,
In this scenario, since your the granularity in your fact table is day level, it's better to assign the target value on day level as well. I assume you have a full calcendar table. Firstly, you need to add a "YearMonth" column in this table for grouping.
YearMonth = YEAR('Table'[Date]) & "" & MONTH('Table'[Date])
Then just add a column for Daily Target.
Daily Target = 30/ CALCULATE(COUNTA('Table'[Date]),ALLEXCEPT('Table','Table'[YearMonth]))
Now you should be able to cumulative sum with a fixed 30 on month level.
Regards,
Thank you very much for your answer!
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 |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |