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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
fabianfilth
Regular Visitor

Max Date between more than two dates

Greetings power BI community

 

I hope you can help me with the following

 

I have 5 different column dates and I want to calculate the max date betweeen them, is there any dax function that works for this? or how can I achieve this with dax?

 

thank you for your help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @fabianfilth ,

Please have a try.

Max Date = 
MAXX (
    UNION (
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date1] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date2] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date3] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date4] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date5] ) )
    ),
    [Date]
)

Solved: DAX Max value of multiple columns for every row - Microsoft Fabric Community

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @fabianfilth ,

Please have a try.

Max Date = 
MAXX (
    UNION (
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date1] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date2] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date3] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date4] ) ),
        ADDCOLUMNS ( 'Table', "Date", MAX ( 'Table'[Date5] ) )
    ),
    [Date]
)

Solved: DAX Max value of multiple columns for every row - Microsoft Fabric Community

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

some_bih
Super User
Super User

Hi @fabianfilth 

Check link https://goodly.co.in/max-multiple-columns-measures-powerbi-dax/ 

Hope this help.





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

Proud to be a Super User!






Thank you for ur help, but I have a question, what does the [Value] measure as the second argument of the MAXX function refers to? it says that it is the default column name, but I don't get it!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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