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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Min value from other columns

Hi , I need to create a custom column, which gives the lowest value from other columns.

ClassColumn_1Column_2Column_3Required_Results
A1161
B2 52
C2151
D4322
E5222
F64 4

 

Please help me

5 REPLIES 5
jthomson
Solution Sage
Solution Sage

https://community.powerbi.com/t5/Desktop/MIN-exlude-blanks/td-p/404231

 

That's for two columns and handles the blank values you have - you should be able to expand that logic to a third column from there

ryan_mayu
Super User
Super User

@Anonymous 

you can try this

Column = if(ISBLANK('Table'[Column1]),min('Table'[Column2],'Table'[Column3]),if(ISBLANK('Table'[Column2]),min('Table'[Column1],'Table'[Column3]),if(ISBLANK('Table'[Column3]),min('Table'[Column1],'Table'[Column2]),min(min('Table'[Column1],'Table'[Column2]),'Table'[Column3]))))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

@ryan_mayu 

I want to creat a  custom column. 

Oh, you want a Power Query solution?

 

jthomson_0-1602259598273.png

 

Anonymous
Not applicable

@Anonymous 

 

You can use MIN function to get the lowest value from other columns while creating a new column-

 

Column = MIN('TableName'[ColumnName])
 
Appreciate your kudos !! Please mark my post as solution if this helps you.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.