Column names in the format "start week date - end week date"

Hi All,
I am using a calculated field to generate start of the week based on the selected day of date.
if I select the date as 21-Jun-2024, the calculated values are 14-july-24, 07-July-24 and so on…

addDateTime(extract(‘WD’, addDateTime(-1, ‘DD’, ${SelectedDate})), ‘DD’, truncDate(‘WK’, addDateTime(- extract(‘WD’, addDateTime(-1, ‘DD’, ${SelectedDate})),‘DD’,{line_item_usage_date})))

I am able to get the data correctly however, I would like to show column names in the format of
start week date - end week date.

eg. 14-Jun-2024 - 20-Jun-2024
e.g. 07-Jun-2024 - 13-Jun-2024

currently the column name just showing only one date which is start of the week. Please find attached screenshot for the reference.

Could you please help advise how we can show the column names in the “start week date - end week date.” format

Would highly appreciate the response.

Thank you
Amit

Hello @Amit_Raj , welcome to the Quicksight community!

You may be able to use a calculated field similar to the second calculation described in the solution of this post:

Where you use your original calculated field to determine the dates and then concat them.

Hi @Amit_Raj , did this solution work for you? I am marking this reply as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the QuickSight Community!

@duncan! and @Xclipse! yes indeed it worked!
Thank you so much!

1 Like