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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors