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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Saaharjit
Helper I
Helper I

Cumulative sum of department

Below is my data table. Is it possible to get a cumulative sum of all units in a SEQ_NO.

 

For Example - on 01/03/2018 number of units produced in SEQ_NO 101 is 48. The next date is 6 and then 18 and so on. I want the graph to add to show 48 on  01/03/2018 then the next day add 6 and show 54 units (48 + 6 = 54) and then add 18 and so on. Then for the Next SEQ_NO(102) start again.Capture.JPG

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi @Saaharjit,

 

You may refer to my solution here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi @Saaharjit,

 

You may refer to my solution here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ccakjcrx
Resolver I
Resolver I

Hey @Saaharjit!

 

I created a table in PBI Desktop, and used the following measure to get the outcome I believe you are looking for:

 

MsrCalSeqNo = 
CALCULATE(
    SUM(Sheet1[Units]),
    FILTER(
        Sheet1,
        Sheet1[SEQ_No]
    )
)

Here is a screenshot of my table visual with that info:

 

Screenshot.jpg

 

 

 

 

 

 

 

 

 

 

 

Click HERE to access my .pbix file. 

 

Hope this helps!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.