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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
rjg2g11
Advocate I
Advocate I

Minimum Value across multiple columns

 

Hello,

 

I am trying to create a column that picks out the minimum value from a number of columns. 

 

I have posted a table below with my desired outcome

 

Can someone advise?

 

Many Thanks

 

 

IDABCDEFGDesired Column
3618509819.983914.70000C
368551672229.51801817.818.5F
3493843025.9827.9817.80020.517G
3800155423.627.316.2816.200D
32315810027.116.70016.516.1G
3212523922.12716.40016.117.8F
1 ACCEPTED SOLUTION

@rjg2g11

 

 

After unpivoting your Letter Columns, you can use following MEASURE to get the desired Output

 

DesiredResult =
VAR MinValue =
    CALCULATE ( MIN ( TableName[Value] ), TableName[Value] <> 0 )
RETURN
    CONCATENATEX (
        FILTER ( TableName, TableName[Value] = MinValue ),
        TableName[Attribute],
        ", "
    )

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Easiest thing to do would be to unpivot your letter columns. At that point, the problem is trivial.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

make sure to specify that you dont care about zeros, as in your dataset, the lowest value is zero, even though its your outcome in the sample data specifies you want the lowest value that is greater than zero.

@rjg2g11

 

 

After unpivoting your Letter Columns, you can use following MEASURE to get the desired Output

 

DesiredResult =
VAR MinValue =
    CALCULATE ( MIN ( TableName[Value] ), TableName[Value] <> 0 )
RETURN
    CONCATENATEX (
        FILTER ( TableName, TableName[Value] = MinValue ),
        TableName[Attribute],
        ", "
    )

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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