Chart Macro - use only select rows and change the order of columns
Asked by Tabea Wich:

Dear community,

I have tables including revenue, operating profit and profitability with time periods reaching from right to left as common in annual reports. Now I want to create charts from that and as revenue and profitability can hardly be displayed in the same chart I want two charts one only using the row labelled revenue and one using the row labelled profitability. Additionally, I want the chart to use the columns other way around i.e. dates should reach from left to right as usual in charts.

Is this possible?

Thanks for you help in advance :-)


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello [@Tabea Wich](/t5/user/viewprofilepage/user-id/2907593)

If you could share a screenshot of table with data, it would easier to give you advice.

As I see [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) will be helpful in this case:

* You can use [Table filter](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+filter+macro?src=contextnavpagetreemode) macro to filter out revenue and profitability rows for each chart.
* Table Excerpt and Table Excerpt Include macros will help you to avoid copying the table for each chart macro.
* Not sure, but you may need to aggregate values for profitability and revenue with [Pivot Table](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Pivot+table+macro) macro instead of filtering tables.
* And you can use [Chart from Table](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Chart+from+Table+macro?src=contextnavpagetreemode) macro that is compatible with Table Filter and Pivot Table macros.

There is a [demo site](https://demo.stiltsoft.com/display/tblfilter/Chart+from+Table?os_username=guest1&os_password=guest1) where you can play with the app to see if suits your needs. Also you can [contact support](https://stiltsoft.customercase.com/forums/support-requests/ideas/create?category=Table%20Filter%20and%20Charts%20for%20Confluence) for personal assistance.

comments: author: Tabea Wich
body: Thanks a lot for you help! Unfortunately, my organization doesn't have these macros. I guess, there's no way to do it just with the regular chart macro?


author: Tabea Wich
body: ![tables with charts.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/49339i47B35E307E98FFF9/image-size/large?v=v2&px=999 "tables with charts.JPG")this is my table and the charts I want to create


author: Andrey Khaneev _StiltSoft_
body: I tried to do it with the Chart macro, but it looks like impossible to do.

Here what I got with Chart from Table macro:

![2019-03-22_17h16_20.png](https://community.atlassian.com/t5/image/serverpage/image-id/49358i40FD348AE4D05FBB/image-size/large?v=v2&px=999 "2019-03-22_17h16_20.png")![2019-03-22_17h16_36.png](https://community.atlassian.com/t5/image/serverpage/image-id/49360iE7A05AD50BCA5FE9/image-size/large?v=v2&px=999 "2019-03-22_17h16_36.png")The Chart from Table macro is a part of Table Filter and Charts app, you need to install it to get the macro.


author: Tabea Wich
body: okay thanks a lot for you help!


Tags: chart

confluence-server

server