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
robs67stang
Frequent Visitor

Updating a column in a table with only dates with in 365 days

Good morning.  I am having issues figuring out how to format a column in a table to only show dates within 365 days of the current date, but leave the blanks in the column for the dates outside of that parameter.  I need the blanks due to may pie charts uses them to calulate completed training courses versus not completed, or expired, training courses.  I have included a snapshot of one of the columns I'm trying to format.  All the dates are currently within 365 days, but I need them to go blank as they expire.  Any help would be greatly appreciated.  Thank you.

 

robs67stang_0-1688131646603.png

 

 

1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hi @robs67stang,

You could create a calculated column like the one below and use it instead.

barritown_0-1688456003690.png

In plain text:

Calculated Column = IF ( DATEDIFF ( [Default Date], TODAY(), DAY ) < 365, [Default Date], BLANK() )

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

View solution in original post

2 REPLIES 2
robs67stang
Frequent Visitor

Alexander,

  That worked great.  Thank you for your help!

barritown
Super User
Super User

Hi @robs67stang,

You could create a calculated column like the one below and use it instead.

barritown_0-1688456003690.png

In plain text:

Calculated Column = IF ( DATEDIFF ( [Default Date], TODAY(), DAY ) < 365, [Default Date], BLANK() )

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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