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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
blazko
Helper III
Helper III

MIN from four different tables

Hi I need a DAX formula to calculate min value (time in this ex) from four different columns that are in different tables.

The problem is when the MIN measure returns blank, so simple min(min ();min()) is not working. Please help!

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @blazko,

 

Based on my test, the formula should work in your scenario. Smiley Happy

Measure =
MAXX (
    UNION (
        SELECTCOLUMNS ( Table1, "Date", Table1[Date1] ),
        SELECTCOLUMNS ( Table2, "Date", Table2[Date2] ),
        SELECTCOLUMNS ( Table3, "Date", Table3[Date3] ),
        SELECTCOLUMNS ( Table4, "Date", Table4[Date4] )
    ),
    [Date]
)

Remark: just replace the bold with your real table name and column name.

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @blazko,

 

Based on my test, the formula should work in your scenario. Smiley Happy

Measure =
MAXX (
    UNION (
        SELECTCOLUMNS ( Table1, "Date", Table1[Date1] ),
        SELECTCOLUMNS ( Table2, "Date", Table2[Date2] ),
        SELECTCOLUMNS ( Table3, "Date", Table3[Date3] ),
        SELECTCOLUMNS ( Table4, "Date", Table4[Date4] )
    ),
    [Date]
)

Remark: just replace the bold with your real table name and column name.

 

Regards

Thank You! 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors