Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Table transformer SQL concat a date

Hi,

I am using table transformer to concat the content of a few columns into one before using it to put up on a gantt chart as a road map.

In the original table, I have the following columns:

  • Feature
  • Market
  • Channel
  • Phase
  • Start date
  • Target release Date (using date format d M yy)

In table transformer, I used the below SQL query:

SELECT *, CONCAT(T1.'Feature', " | ", T1.'Channel', " | ", T1.'Phase', " | ", T1.'Target release Date') as 'Combined' FROM T1

And the date format has been aligned through all the tables and charts.

Then I used the resulted table for Gantt chart (Chart from table), using Start date and Target release Date as values column, then Market and Combined (from table transformer) as labels column. 

 

On the graph, the dates in the 'Combined' label is showing something like '1670169600000'.

 

Is there a way to show the dates in concat as some readable dates?

 

Thank you.

1 answer

1 accepted

2 votes
Answer accepted
Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 06, 2022

Hi @Arica Chan ,

Unfortunately I couldn't reproduce the issue. Here is how everything works for me:

Mon 3-1.pngSELECT T1.'Project', T1.'Phase', T1.'Start Date', T1.'End Date', T1.'Completion Ratio',
CONCAT(T1.'Project' + " | " + T1.'Start Date') as 'Project Combined'
FROM T1

Mon 3-2.png

Mon 3-3.png

Please check if your version of the Table Filter and Charts for Confluence app is up-to-date (the current one is 8.6.1).

If everything seems to be ok, please raise a support request (attach the page storage format: upper right corner -> menu ... -> View Storage Format. If you don't see the option, ask your Confluence administrator to do it for you. Then we'll be able to recreate exactly your data and look into the issue).

Hi Katerina,

Thanks for your check. 

Not sure if it relates to the date function that I used in the table? I used this format so to align everyone's input for the date in order for the gantt chart to work...

Confluence table.PNG

Then my gantt chart shows the date like '1670169600000' below.

Confluence concat date.PNG

Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 06, 2022 • edited

Hi @Arica Chan ,

Still can't reproduce the issue: I've changed the dates for the Start Date column as you have on your screenshot (used a date picker).

Tue 1-1.png

Check that you have a proper date format in the Table Transformer macro settings:

Tue 1-2.png

The SQL query remains the same (see my previous reply). Check the last column - does your column look the same?

Tue 1-3.png

And here is the result graph:

Tue 1-4.png

Do you have a proper output after the Table Transformer macro? The Chart from Table macro just uses your combined column as plain text so I suppose smth goes wrong after the concatenation. Again check the date format inside the Table Transformer macro.

Hi @Katerina Kovriga _Stiltsoft_ ,

I tried with a simple table on a new page, but the date is still not in correct format after concat. I checked the date format in table transformer. 1.PNG

SELECT *, CONCAT(T1.'Feature' + " | " + T1.'Channel' + " | " + T1.'End date') as 'Combined' FROM T1

date format.PNG

 

But the date is still not showing in correct format.

concat.PNG

Any other idea on this?

Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 07, 2022

Please check the version of the app (update it if necessary, the current version is 8.6.1) and raise a support ticket with the page storage format attached - we'll try to look at the issue closely.

Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 07, 2022

You may also try to use the CONCAT_VIEW function instead of the CONCAT - maybe it will help you to preserve the initial formatting.

Thank you. You have been helpful!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events