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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
twister8889
Helper V
Helper V

IF max date minor that TODAY DAX

Hi guys,

 

I don't understand how to create an if, for each line of my table to verify that Table1[Date] is < Today. If Table1[Date] is < Today, DUE, Table1[Date].

I need to show this in the table, so I need to summarize all values in DUE, and show all lines dates for else.

I tried create this dax, but not working

 

if(max(Table1[Date]) < TODAY(), "DUE", max(Table1[Date]))

 

How do I do this?

 

DateValue
DUE7869
01/10/202190
01/02/2021100
02/07/202145
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@twister8889 , Create a new column

if([Date] < today(), "Due", [Date] & "" )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@twister8889 , Create a new column

if([Date] < today(), "Due", [Date] & "" )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

First of all, thank you so much for your answer...

 

Its working now, thanks

 

So in this case, I need to use Column and not Measure!!!!! ok, thank you. Its better create this in power query ?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.