Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Niraj_vora0106
Helper III
Helper III

Cumulative count

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. 

Capture2.PNGCapture3.PNG

Is there any workaround if I want it monthwise?

 

used the following Dax measure.

 

V1 Cumulative Total Calls =
CALCULATE(DISTINCTCOUNT(T2363[IncidentNo]),
FILTER(ALLSELECTED(DATES[Month Number]),
DATES[Month Number] <= MAX(DATES[Month Number])))
 
 
 
V3 Cumulative Total Calls =
CALCULATE(DISTINCTCOUNT(T2363[IncidentNo]),
FILTER(ALLSELECTED(DATES[Months]),
DATES[Months] <= MAX(DATES[Months])))
 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Niraj_vora0106
Helper III
Helper III

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! 

amitchandak
Super User
Super User

@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])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors