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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
tonatiuhalan
Regular Visitor

Limit Bar Graph Values

While making a report, depending on the selection of certain slicers, the data displayed in the bar graph for some categories can be much bigger than others (as shown below)

tonatiuhalan_0-1697568381282.png

 

This makes comparing the data a little bit difficult. I was wondering if there's a way to 'limit' (truncate) the values to display in the graph to a certain amount.

For the example above for it to show instead of 597% display the bar corresponding to a 100% height with a label '>100%' and maybe the tooltip does dispaly the real value.

In this example the percentage is calculated via a measure in DAX. I suppose there must be a way to modify the code in order to display what I want, but just can't find how exactly.

Thanks

1 ACCEPTED SOLUTION
CoreyP
Solution Sage
Solution Sage

Sure, you could do that. You would need to update the DAX measure to something like below:

New Measure = 
VAR _actualvalue = [Current Measure]
VAR _result = IF( _actualvalue > 1 , 1 , _actualvalue )

RETURN
_result

Then set this as a Dynamic measure so you can use custom string formatting to format the data label / tooltip for "100% +" value

View solution in original post

2 REPLIES 2
rsbin
Super User
Super User

@tonatiuhalan ,

You can try something like this.  Create a new Measure using IF or SWITCH:

YourMeasure_Display = IF( [Your Measure] < 1,[Your Measure], 1 )

Then use this new Measure in your Visual.

In the Tooltip you can then use [Your Measure] to display the true or actual result.

Hope you are able to follow the logic behind this.

Regards,

 

CoreyP
Solution Sage
Solution Sage

Sure, you could do that. You would need to update the DAX measure to something like below:

New Measure = 
VAR _actualvalue = [Current Measure]
VAR _result = IF( _actualvalue > 1 , 1 , _actualvalue )

RETURN
_result

Then set this as a Dynamic measure so you can use custom string formatting to format the data label / tooltip for "100% +" value

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors