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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.