Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Change x-axis in diagram from pivot table

Alexander Finn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2020

Hello everyone,

I have the following diagram, which was created by the 5 small pivot tables below

image.png

as you can see, the days of the week are on the top right of the diagram and "completed", "incomplete" on the x-axis... I need it to be to other way round, resp. I need the weekdays on the x-axis... 

This is how it looks in the editor:

image.pngimage.png

Thank you very much in advance

1 answer

1 accepted

1 vote
Answer accepted
Andrey Khaneev _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.
April 30, 2020

Hello Alexander,

Here is what I could get:

2020-04-30_15h03_45.pngIn the edit mode:

2020-04-30_15h05_21.png2020-04-30_15h06_22.png2020-04-30_15h06_39.png

The SQL query:

SELECT "Count" AS 'Value',
SUM(CASE WHEN T1.'Monday' = "Completed" THEN 1 ELSE 0 END) AS 'Monday',
SUM(CASE WHEN T1.'Tuesday' = "Completed" THEN 1 ELSE 0 END) AS 'Tuesday',
SUM(CASE WHEN T1.'Wednesday' = "Completed" THEN 1 ELSE 0 END) AS 'Wednesday',
SUM(CASE WHEN T1.'Thursday' = "Completed" THEN 1 ELSE 0 END) AS 'Thursday',
SUM(CASE WHEN T1.'Friday' = "Completed" THEN 1 ELSE 0 END) AS 'Friday'
FROM T1

 2020-04-30_15h08_03.png2020-04-30_15h08_11.png

Alexander Finn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 30, 2020

Legendary

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events