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
DATrey
New Member

Need Calculation help.

I have an odd SLA calculation I am trying to build and it just doesn't seem to work.

 

I have a Completion Percentage. 

Example:

Job 1 uses 5 of 10 allotted days.  It therefore meets SLA.

Job 2 uses 11 of 10 alloted days.  It therefore fails to meet SLA

Job 3 uses 12 of 10 alloted days.  It therefore fails to meet SLA

Job 4 used uses 11 of 10 alloted days.  It therefore fails to meet SLA

Of the 4 jobs, the MEETS SLA percentage is 25%

 

The calculation I have been asked to provide is an Under Aggregate percentage.

Of the 4 jobs, the total alloted days is 40.  The total days used is 39 of 97.5% of the alloted days.

100% of Aggregated Allocation days is 40, so I need a calculation that is 100% - 97.5% and the result show as 2.5% Under Aggregate.

 

I have tried:

Sum of Days to Complete divided by Sum of Allocation SLA Days =
DIVIDE(1-
SUM('TABLENAME'[Days to Complete]),
SUM('TABLENAME'[ALLOCATION SLA Days]))

 

But it isn't coming out correctly.  I know I am missing a SUBTRACTION function, I am just not sure how to write it.

 

Any assistance would be much appreciated.

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@DATrey I guess you need this:

 

1-
DIVIDE(
   SUM('TABLENAME'[Days to Complete]),
   SUM('TABLENAME'[ALLOCATION SLA Days])
)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@DATrey I guess you need this:

 

1-
DIVIDE(
   SUM('TABLENAME'[Days to Complete]),
   SUM('TABLENAME'[ALLOCATION SLA Days])
)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you. Yes, that is what I was looking for.  Moving the -1 to before the DIVIDE function.

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.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.