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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ubaid2001
Frequent Visitor

Cumulative Sum except specific ID

Hi,

I have two table in power bi,

Table 1

ubaid2001_0-1701317347946.png

Table 2

ubaid2001_1-1701317381080.png

I am calculating the cumulative sum of amount from table, on 23-Nov-2023 the sum of Amount is 83974 with ID[1,2,3,4] but the sum of ID 2 is 0, Now in the table 2 I want the sum of all ID's which are filtered in table 1 but except the one with sum as 0.

so the Table 2 Sum for ID [1,2,3,4] is 146447 and ID 2 Sum is 51454, so it should excude the ID 2 and give the sum like 146447 - 51454 = 94993

 

Thanks

 

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

All DAX measures are in the pbix file, and I hope the below can provide some ideas on how to create a solution for your semantic model.

 

Jihwan_Kim_1-1701320792563.png

 

 

Jihwan_Kim_0-1701320768852.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi,

I have tried your measure in line graph it is showing constant value for all dates,

ubaid2001_0-1701367670129.png

on date 9/5/2023 the measure Result Sum and ID exclude value should be 7018 and and the cumulative sum should be 14053.

 

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.