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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

show the value with in limit or show the maximum value if after the limit

I have 2 columns ID and value out of which i want only those id whoes value is less than 4 and if value is 4 or greater than 4 then only show id and value of maximum one

Surya9_0-1663738495692.png

 

3 REPLIES 3
HoangHugo
Solution Specialist
Solution Specialist

Hi, try this

show_value =

var select_value = SELECTEDVALUE(value column)

var select_ID = SELECTEDID(ID column)

return IF(MAXX(FILTER(table, ID column = select_ID),value colum)>=4,MAXX(FILTER(table, ID column = select_ID),select_value)

Anonymous
Not applicable

This is not working for me

 

Hi, modifiy a bit

var select_value = SELECTEDVALUE(value column)

var select_ID = SELECTEDVALUE(ID column)

return IF(MAXX(FILTER(table, ID column = select_ID),value colum)>=4,MAXX(FILTER(table, ID column = select_ID),select_value)

if still not, can you share screen of error.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors