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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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