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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
bn12pmebi
New Member

Add a high value limit to a measure

I have a measure adding together 6 values to create a total.  It's possible for the sum to be greater than 100, but in these situations I want PowerBi to just show 100 instead of 102, for example.   How do I add this kind of limit?

1 ACCEPTED SOLUTION

Basically taking your measure and just having it be the variable

Measure = 
var addvalues = [1]+[2]+[3]

return if(addvalues>100,100,addvalues)

View solution in original post

4 REPLIES 4
bn12pmebi
New Member

Thanks, that did it!

Syk
Super User
Super User

In your measure we can add an if statement to handle this! It would look something like...

Measure = 
var addvalues = sum(table[value1],table[value2])

return if(addvalues>100,100,addvalues)

 This basically checks to see if your measure would return something greater than 100, if so, just return 100. If not, return the original value!

It's a very simple measure adding together other measures, like [1]+[2]+[3].  how would I apply your solution in this example?

Basically taking your measure and just having it be the variable

Measure = 
var addvalues = [1]+[2]+[3]

return if(addvalues>100,100,addvalues)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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