Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
e_ko
Partner - Contributor
Partner - Contributor

Max value of full accumulated sum in bar chart

Hi community, 

I have two bar charts which need to have an equalized scaling. 

The scale should be the maximum of the first bar chart. This bar chart has a simple sum()-formula, but with full accumulation. 

Have a look at the pictures, I need to get 838 as formula... I tried with rangesum() or rangemax() but didn't get any further.

Thanks a lot for your help!

GraphicsGraphicsProperties of bar chartProperties of bar chart

1 Solution

Accepted Solutions
Kushal_Chawda

@e_ko  there was typo. Below works

=max( aggr(rangesum(above(total sum(Amount),0,rowno())), (YYYYWW,(NUMERIC,ASCENDING))))

 

View solution in original post

4 Replies
Kushal_Chawda

@e_ko  try below. Where highlighted filed is dimension of your chart

=max( aggr(rangesum(above(total sum(Amount),0,rowno()), (Month,(NUMERIC,ASCENDING)))))

e_ko
Partner - Contributor
Partner - Contributor
Author

Hi @Kushal_Chawda thank you for your reply! I didn't get it to work as it says aggr() needs 2 parameters (?)

I've attached the QVW, maybe you can have a look at it?

Kushal_Chawda

@e_ko  there was typo. Below works

=max( aggr(rangesum(above(total sum(Amount),0,rowno())), (YYYYWW,(NUMERIC,ASCENDING))))

 

e_ko
Partner - Contributor
Partner - Contributor
Author

Thank you! 🙂