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

Jordan Govreau December 4, 2019

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

3 votes
Answer accepted
Natalie Paramonova _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.
December 5, 2019

Hi @Jordan Govreau ,

Please wrap your source table in the Pivot Table macro (Table Filter and Charts for Confluence app) 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.

Jordan Govreau December 5, 2019

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.

Natalie Paramonova _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.
December 6, 2019

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

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events