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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.