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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.