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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

% of Job Complete with max 100% calculation

I am trying to calculate the percentage of our jobs that are complete but I do not want to display anything over 100%

 

%_Complete =
SUM('Revenue1'[Total])/SUM('Estimates4'[Amount])
 
 
I tried to add a Max and IF statement but got errors.
 
Thank you for your help!
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

=if(divide(SUM('Revenue1'[Total]),SUM('Estimates4'[Amount]))>1,1,divide(SUM('Revenue1'[Total]),SUM('Estimates4'[Amount])))

Format this measure as %.


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,

Try this measure

=if(divide(SUM('Revenue1'[Total]),SUM('Estimates4'[Amount]))>1,1,divide(SUM('Revenue1'[Total]),SUM('Estimates4'[Amount])))

Format this measure as %.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please try the below measure.

If that is not what you need, if it is OK with you, please share your sample pbix file, then I can try to look into it to come up with a more accurate measure.

 

%_Complete =
If ( 
SUM('Revenue1'[Total])/SUM('Estimates4'[Amount]) >= 100%, blank(), 
SUM('Revenue1'[Total])/SUM('Estimates4'[Amount]) )
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.