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

Be 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

Reply
Anonymous
Not applicable

How to get a monthly cumulative total on non-numeric data?

Hi there,

 

Relatively new to Power BI, but getting complex fast as I'm having to deal with millions of records!

 

My issue is I want to generate a cumulative calculation of data that is not numerical.  I'e I want to count incidences of things, not add up values:

Dean_AKI_0-1666254958834.png

I have connection data for a range of devices, rented by different operators (in the columns here) in each month, operators connect a number of new devices, but rather than a single total being recorded, a record of each individual device with owner attributes, installation date etc is held.  Each of 3 million rows represents a single device.  As you can see, I can calculate the number of devices each operator connects each month, by counting the incidences of their name being attched to units in that month, but I then want to generate cumulative totals; i.e how many devices they are operating in total as time passes.

 

So in the case above I'd like to genrate a column that displayed the running total for EOD as 7, 10, 11, 342, etc rather than 7, 3 ,1 , 331; as it is now.  Ideally this would continue through the years, so EOD in January 2022 would be 3930 (3883+47) not 47.

 

I've already tried forms of : 

 

Running Total = CALCULATE(Sum('qry\'[Sample]),FILTER(ALL('qry\'[Delivered]),'qryS\'[Delivered] <= Max('qry\'[Delivered]))) 

 

but I cannot seem to get them to do what I want.

 

Can anyone make this work without fusing my mind?!

 

Thanks in advance

 

AKI

2 REPLIES 2
Anonymous
Not applicable

Dean_AKI_0-1666258151869.png

So these are the data fields and parameters for the base report.  I cannot modify these as such, but have built some additional columns (not required for what I'm after) to do some secondary cross-referencing.

tamerj1
Super User
Super User

Hi @Anonymous 
Is [Sample] a column? What does it contain? Apparently you're not using a Date Table?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.