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
FernandoSaravia
New Member

Calculate cumulative values for previous months

Hi, community.

 

I hope you can help me.

I'm trying to create the following report:

Captura de pantalla 2024-06-18 104552.png

 

And this is the data I have (just a sample):

 

FernandoSaravia_0-1719328786675.png

 

There are multiple dealers and entities, I would like to create a measure that calculates the cumulative values from each month (like in the fisrt image), at the moment what I was able to create is a this graphic:

FernandoSaravia_1-1719328916565.png

 

The one on the left shows the right value per months, but I want to add the value for each of the previous months to looks like the first image I posted.

 

I apologize since I'm new with Power Bi and this is something I need to create for my job.

 

I'll appreciate your help.

 

Best,

Juan Hernández.

 

 

 

 

1 ACCEPTED SOLUTION
FernandoSaravia
New Member

Hi, it looks like I foudn a measure that solved my issue: 

MT = CALCULATE(SUM(Devices[ManagedV]),FILTER(ALL(Devices),Devices[created_timestamp]<=MAX(Devices[created_timestamp])))
This function added the values from previous months, and this is the result I was looking for:
FernandoSaravia_0-1719354549108.png

Thanks! 😄

View solution in original post

3 REPLIES 3
FernandoSaravia
New Member

Hi, it looks like I foudn a measure that solved my issue: 

MT = CALCULATE(SUM(Devices[ManagedV]),FILTER(ALL(Devices),Devices[created_timestamp]<=MAX(Devices[created_timestamp])))
This function added the values from previous months, and this is the result I was looking for:
FernandoSaravia_0-1719354549108.png

Thanks! 😄

Hi @FernandoSaravia 

 

Glad to hear you solved the problem yourself! Could you please mark your solution as an ANSWER? This will help more users who are facing the same or similar difficulties. Thank you!

 

Best Regards,
Yulia Xu

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.