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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Daviejoe
Memorable Member
Memorable Member

Capping a cumulative total

Hi All,

 

I have a machinery table, where downtime has a cost per minute.  So, as per below, Event 1 the machinery was down for 100 minutes at a per minute rate of £65.00.  These are all in my table.  The total cost is not in my table.  The total cost of a single event will get capped at £50,000.

 

I'm going to have a lot of rows of data in this table so thinking that it would be best to have the calculation as a measure and not as a calculated column.

 

How do i get the calculation to give me my individual event cost, capped at £50,000, and give me my total cost of all events but still capping those events at £50,000?

 

In my tableIn my tableIn my table Not in my table
Event NoNo of MinsRate per minute Total Cost
Event 1100 £                       65.00  £      6,500.00
Event 21890 £                       65.00  £ 122,850.00
Event 31000 £                       65.00  £    65,000.00
Event 4899 £                       65.00  £    58,435.00
Event 5456 £                       65.00  £    29,640.00
Event 61059 £                       65.00  £    68,835.00
Event 71560 £                       65.00  £ 101,400.00




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Daviejoe, if the rate is the same for everyone

New Measurement: Sum(Table[No Minimum]) * max(Table[Rate])

if you don't

New measurement: sumX(Table, Table[Mins Not]*Table[Rate])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Daviejoe, if the rate is the same for everyone

New Measurement: Sum(Table[No Minimum]) * max(Table[Rate])

if you don't

New measurement: sumX(Table, Table[Mins Not]*Table[Rate])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak 

 

Each event will need to be capped at £50,000 so I need do that at a row level and also when I roll up all the events into one KPI.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.