Jump to content

Under categories I have category A, B and C I want to compute sum(B)/sum(A) and sum(C)/sum(A) in a bar chart where x-axis is Category.


samer qutob

Recommended Posts

Hi ... I have two columns in my data table (categories and values). Under categories I have category A, B and C I want to compute sum(B)/sum(A) and sum©/sum(A) in a bar chart where x-axis is Category. The idea here is that we have a benchmark category 'A' and we would like to compare all other categories to this benchmark. The easiest way would be to pivot table to create a unique column for A,B and C then simply divide B over A and C over A. But this is an expensive operation since our data table is huge ... I was wondering if we can apply filtering inside custom expression. Something like this: Sum(value) / sum(value) over (All([Axis.X]) where [Axis.X] = 'A') CAN WE FILTER DATA INSIDE CUSTOM EXPRESSION THANKS
Link to comment
Share on other sites

  • 6 months later...

Data source is Oracle database but we really do not care ... This may come from any source. As for pivoting table, I see 2 issues:

1. transformed tables do not automatically refresh when source table refreshes except when opening template.

2. Pivoting is time consuming in terms of execution time and it duplicates the data.

It would be amazing if custom expression allow embwdding of filtering criteria as explained in my note.

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...