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
samdep
Advocate II
Advocate II

Donut: Default to 100% when Actual/Primary Value Exceeds 100%

Hi Community,

 

I am building a dashboard that looks at hours logged over the course of a month vs. available man hours. 

 

First measure counts working days within the month, the next measure uses a what-if parameter to generate the available man hours based on the headcount selected.

 

Everything is working perfectly... My problem is that I'd now like to showcase available time used (either in hours or %) via a donut/circle, but in the scenario where the logged hours exceeds available man hours, the % exceeds 100 and I get the error message of primary value exceeds max value.

 

This isn't an issue with the KPI card, it simply reflects 120% or whatever the case may be... I've tried manually putting in 1.0 as the max value and I also tried a DAX measure of:

 

IF(Logged Hours (Measure) > Available Hours (Dynamic Measure Based on What-If Param), Available Hours, Logged Hours).

 

I'd really like to include this visual, but cannot seem to make it work -- I keep getting the error message of primary value exceeds max value, but I would think that the IF/THEN measure I created could be inserted into the Max Value field -- defaulting to 100% or the total hours logged if the total hours (or %) exceeds the available hours or 100%.

 

Really appreciate any guidance. Thanks! 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can modify your measure using the MIN() function

 

MIN (Available Hours, Logged Hours)  will give you the logged hours as long as they are less than the available hours. If the logged hours exceed the available hours the measure will instead return the pegged value of the available hours.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

You can modify your measure using the MIN() function

 

MIN (Available Hours, Logged Hours)  will give you the logged hours as long as they are less than the available hours. If the logged hours exceed the available hours the measure will instead return the pegged value of the available hours.

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!

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.