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
Anonymous
Not applicable

Conditional Formatting /check on date vs. Today()

Dear all,

 

I struggling a bit to get this done. I have a column with dates (planned due dates "init_end_date") and want to include an error icon to show that the date lies in past. So I created this measure, but the the measure does not give me back the right value....sometimes it does but sometimes it does not. Help to point me to my mistake and a soltion is a appreciated.

 

 

end date icon = if(MAX('tbl'[init_end_date])<=(TODAY()),0,1)

 

 

So why is this not returning a correct value in all instances ?

 

Thank you so much.

 

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@Anonymous 

Dose not happend in mine test with <=today. Are you using the same column?Are init-end-date and planned due dates the same column?

 

Can you copy paste part of the data table or share a sample pbix with same date format and type, I doubt this could be issue.

 

 

Paul Zheng _ Community Support Team

 

 

Anonymous
Not applicable

@V-pazhen-msft 

Hi Paul,

 

thank you for looking at this...I gave it another retry. I found that it works now, but only if I am not displaying the measure value in a column....can you explain why that is?

 

Cheers,

Udo

Anonymous
Not applicable

@Pragati thank you for looking at my post. To give a bit more details I am adding screen shots to show you the measure results...

 

The table is a bit longer so first results look good:

udobausc_0-1625648913339.png

Including the display of an error icon e.g. when dates are missing:

udobausc_1-1625649037587.png

But then there are many entries where I expect the measure to result in a value of "1" which and where it shows 0:

udobausc_2-1625649174779.png

 

Does that help you as a background ?

 

 

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Share some sample data here, so that we can understand what the requireemnt is and what is nor working.

Currently just seeing the measure doesn't help whether it is working or not.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.