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
diegolima
Helper III
Helper III

how to create a measure in power bi for search the major value in four column that not to have 0

Hello guys, how are you?

 

I have a table that receives daily 4 values sent by a device, in total there are 6 columns (one for the date, one for the device and one for each value). I need to make a measure or column that selects the highest value among the colunas, but I also need the other columns not to be in 0.

 

how to create a measure in power bi for search the major value in four column 2.png

Can anybody help me?

 

Thank you all!

1 ACCEPTED SOLUTION
samdthompson
Memorable Member
Memorable Member

Hello. I am not 100% sure what you want the column to return. I suspect its a problem best overcome in power query but here is a DAX solution anyway. Here are two solutions that I think might work for you:

 

Max only if all values>0

2021-08-18_8-14-27.jpg

 

Max if values >0

2021-08-18_8-16-50.jpg

 

 

// if this is a solution please mark as such. Kudos always appreciated.

View solution in original post

1 REPLY 1
samdthompson
Memorable Member
Memorable Member

Hello. I am not 100% sure what you want the column to return. I suspect its a problem best overcome in power query but here is a DAX solution anyway. Here are two solutions that I think might work for you:

 

Max only if all values>0

2021-08-18_8-14-27.jpg

 

Max if values >0

2021-08-18_8-16-50.jpg

 

 

// if this is a solution please mark as such. Kudos always appreciated.

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