It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Creating a Chart for a Table to show number of rows with given column value

I thought this would be pretty easy to accomplish, but I'm unable to figure this out. I'm thinking there should be an easy solution...

 

Say I have a table with rows that represent information on different cars. Each row represents a different car and columns for things like color, horse power, number of doors, etc.. Each car is categorized into a 'sub-class' of sorts, say "Sports car", "Luxury car", and "Standard car". The table has a column with this sub-class categorization data. I want to create a chart to show how many rows have each of the categories. So basically I want to see there are X amount of sports cars, Y amount of luxury cards, and Z amount of standard cars.

I tried creating a chart using the car category column as the labels column and the car name column as the values column, but I get the following error:

 

"Probably, there is no data in the Values column. Please, select the column with data values for chart generation."

 

It seems like there should be an easy solution, but I'm not seeing it...

1 answer

1 accepted

Hi @Jordan Govreau ,

Please wrap your source table in the Pivot Table macro to count the number of rows in each category because the Chart from Table macro requires numeric values when building a chart.

After that wrap the Pivot Table macro in the Chart from Table macro to build a chart based on the aggregated data:

2019-12-05_16h51_28.png

The Pivot Table macro configuration:

2019-12-05_16h51_45.png

The Chart from Table macro configuration:

2019-12-05_16h52_06.png

Please let me know if it works for you.

Thanks Natalie, this is exactly what I'm looking for!

 

Is there any way I can not show the pivot table? I really only want to display the original table and the chart.

In case you hide the source table in the Chart from Table macro, you won't see both pivot and the source table.

As a workaround, you can use the Table Excerpt and Table Excerpt Include macros.

Wrap your source table in the Table Excerpt macro and place the Table Excerpt Include macro in the Pivot Table macro body.

2019-12-06_11h32_24.png

The Table Excerpt macro configuration:

2019-12-06_11h32_52.png

The Table Excerpt Include macro configuration:

2019-12-06_11h33_19.png

Set the Hide the source table option in the Chart from Table macro:

2019-12-06_11h33_42.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

294 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you