Skip to main content
Solved

How do I change the column header date format?


Forum|alt.badge.img

I am trying to create a comparative balance sheet report and the columns currently have the year (2023, 2022) for the headers.  The report is ran as of 5/31/23 so I would like the column headers to be 5/31/23 and 5/31/22.  How do I change the column set format so the date pulls as of the last day of the period?  

Thank you! 

 

 

Best answer by Laura02

Hello,

Try @PeriodEnd.

For more than one period/year, here is a formula that subtracts to get a proper date on each column. You will substitute @PeriodEnd, change to yyyy for 4-digit year, etc.:

Column header = Period End Date, formatted short, like 12/31/22

= Format( '{0: MM/d/yy}',Report.GetPeriodEndDate(@StartPeriod) )

=Format( '{0: MM/d/yy}', Report.GetPeriodEndDate(Replace(Report.FormatPeriod(@StartPeriod, -3), '-', '')))

=Format( '{0: MM/d/yy}', Report.GetPeriodEndDate(Replace(Report.FormatPeriod(@StartPeriod, -6), '-', '')))

View original
Did this topic help you find an answer to your question?

2 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • Answer
  • May 25, 2023

Hello,

Try @PeriodEnd.

For more than one period/year, here is a formula that subtracts to get a proper date on each column. You will substitute @PeriodEnd, change to yyyy for 4-digit year, etc.:

Column header = Period End Date, formatted short, like 12/31/22

= Format( '{0: MM/d/yy}',Report.GetPeriodEndDate(@StartPeriod) )

=Format( '{0: MM/d/yy}', Report.GetPeriodEndDate(Replace(Report.FormatPeriod(@StartPeriod, -3), '-', '')))

=Format( '{0: MM/d/yy}', Report.GetPeriodEndDate(Replace(Report.FormatPeriod(@StartPeriod, -6), '-', '')))


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 19 replies
  • May 25, 2023

That worked - thank you!! 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings