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
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] & "" )

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@twister8889 , Create a new column

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

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
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.