This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hi, community,
I'm trying to get the cumulative total calls in my data monthwise.
As you can see if I'm using the Month number then the cumulative is working perfectly.
But in Month's case, it is not working.
Is there any workaround if I want it monthwise?
used the following Dax measure.
Solved! Go to Solution.
@Niraj_vora0106 , First of if you have date table, then you should use the month from dates table. Second distinct count will not sum , because same id can repeat across month
Also you can use date, no need to use month, you can try like
V3 Cumulative Total Calls =
CALCULATE(DISTINCTCOUNT(T2363[IncidentNo]),
FILTER(ALLSELECTED(DATES),
DATES[Date] <= MAX(DATES[Date])))
or
V3 Cumulative Total Calls =
CALCULATE(sumx(Values(Dates[Month]), calculate(DISTINCTCOUNT(T2363[IncidentNo]))),
FILTER(ALLSELECTED(DATES),
DATES[Date] <= MAX(DATES[Date])))
Hi, @amitchandak
Oh okay got it, used the Months from Dates column and tried the DAX that you suggested.
Got the outcome.
Thank you, sir!
@Niraj_vora0106 , First of if you have date table, then you should use the month from dates table. Second distinct count will not sum , because same id can repeat across month
Also you can use date, no need to use month, you can try like
V3 Cumulative Total Calls =
CALCULATE(DISTINCTCOUNT(T2363[IncidentNo]),
FILTER(ALLSELECTED(DATES),
DATES[Date] <= MAX(DATES[Date])))
or
V3 Cumulative Total Calls =
CALCULATE(sumx(Values(Dates[Month]), calculate(DISTINCTCOUNT(T2363[IncidentNo]))),
FILTER(ALLSELECTED(DATES),
DATES[Date] <= MAX(DATES[Date])))
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 24 | |
| 21 | |
| 20 |