Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straigt Table Colomns Totals in Chart

Hi,

I would appreciate any assistance. My Problem is:

I have a Straight Table with a Coloumn A an B(the rows in  A & B are calculated from other coloumns in the straight table)  I need to use the TOTALS of both to calculate a ratio B/A. and then plot this ratio on to a guage chart. I have tried getting the totals into variables etc. but I am now stuck.

Like I said any help would be appreciated.

Cheers,

Ferdi

1 Solution

Accepted Solutions
Not applicable
Author

Plz find the attached file.

Hope this helps

View solution in original post

12 Replies
Not applicable
Author

Can u provide us with some Sample Data stating Clearly what u want...

Not applicable
Author

Hi Erika,

Here is a sample qvw there is additional explenation notes in the file.

Thanks!

raghavsurya
Partner - Specialist
Partner - Specialist

You can use nested aggregation function to get the required result.

Not applicable
Author

Thanks, but if possible could you give me an example based on the file I've attached.

Not applicable
Author

Plz find the attached file.

Hope this helps

Not applicable
Author

Thanks Erika!!! this is exactly what I required.. Appreciate all your help...

Not applicable
Author

Just for interest sake how would I go about doing the same as I did with A and B but what if I want to use a colmn C (which is the Sum of A and B)  and use that to plot on a chart or Text Object..

See attached qvw.. thanks for the help in advance.

Not applicable
Author

use this in Text Box:

=Sum(aggr(([compID]*score),compID))+Sum(aggr(([compID]*surv_role),compID))

Not applicable
Author

Yeah had that, I though maybe there is a way  that I can reference the coulmn name in the aggr function? The reason is that I have quite a few coloumns that is used to calculate values in other coloumns,

And to expand the Sum(aggr  function to include all these other calculation is going to be a nightmare..