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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Gkourtoglou
Frequent Visitor

Cumulative Count

Good sirs. I have an excel file with Columns "Creation Date" (date format), "Week Number" (General), "Ticket ID" (General), "Year" (General) among plenty of others as seen on my first image below, and I import this excel file on Power BI.

 

Excel Description

Each row is one request from a client.

 

To find "Week Number", I use =TEXT(ISOWEEKNUM([@[Creation Date]]);"00")

To find "Year", I use =YEAR([@[Creation Date]])

 

Power BI

I count the column "Ticket ID" with axis "Week Number" in order to get how many request I have from clients each week and use filters accordingly.

 

Cumulative Count

 

I would like to create a graph like the second image below, where Axis is Week Number and each value is the cumulative count of each week, comparing year by year.

 

Week by Week countWeek by Week count

 

Cumulative CountCumulative Count

 

After numerous months of research and fails, I humbly ask you senseis for some guidance 🙂

 

Best regards,

George

1 ACCEPTED SOLUTION
richbenmintz
Resident Rockstar
Resident Rockstar

Hi @Gkourtoglou ,

 

you can use a measure like 

Weekly Cummulative = CALCULATE(sum('Table'[Tickets]), FILTER(ALLEXCEPT('Table', 'Table (3)'[Year]), 'Table'[Week] <= MAX('Table (3)'[Week]))) 

 

you would have to change the sum to a countrows given you data, i just mocked it up with a sum.

 

results below

richbenmintz_0-1596734966059.png

Hope this helps,

Richard


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

 



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


View solution in original post

4 REPLIES 4
Gkourtoglou
Frequent Visitor

Thanks a lot guys for you assistance.

 

@richbenmintz your solution is ideal.

Best regards,

George

richbenmintz
Resident Rockstar
Resident Rockstar

Hi @Gkourtoglou ,

 

you can use a measure like 

Weekly Cummulative = CALCULATE(sum('Table'[Tickets]), FILTER(ALLEXCEPT('Table', 'Table (3)'[Year]), 'Table'[Week] <= MAX('Table (3)'[Week]))) 

 

you would have to change the sum to a countrows given you data, i just mocked it up with a sum.

 

results below

richbenmintz_0-1596734966059.png

Hope this helps,

Richard


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

 



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


amitchandak
Super User
Super User

@Gkourtoglou , refer if these can help

https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

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
Greg_Deckler
Community Champion
Community Champion

@Gkourtoglou - There is a running total quick measure that might work. Also, you can get there if you have a measure using measure aggregation. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.

 

You would put FILTER in to filter in only the stuff that is "before".

 

If none of that helps, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.