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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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])

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])

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.