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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
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.