Forum Discussion

Gkourtoglou's avatar
Gkourtoglou
Frequent Visitor
6 years ago
Solved

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 count

 

Cumulative Count

 

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

 

Best regards,

George

  • 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

    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!

     

4 Replies