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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors