Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

Above and multiple dimensions problem

Hi every one,

I have a sales table with month, family dimensions and sum of sales and margin as an expression. I want to do a calculation with the previous month using above, but If I use two dimensions the above calculation did not work.

sales: sum(sales)

Margin: sales-Cost

previous margin month: Above(Margin)

thank's

8 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you use two dimensions the above function needs the total keyword to cross dimension boundaries:

above(total Margin)


talk is cheap, supply exceeds demand
ecabanas
Creator II
Creator II
Author

Hi Gysbert

I use this and did not works:

Above(TOTAL[MargenCA])

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

ecabanas
Creator II
Creator II
Author

Hy see attached the project, sorry!!!

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Sorry for the late response. If I understand you correctly then above(total $(VMargenCA%)) should work. See attached qvw.


talk is cheap, supply exceeds demand
Not applicable

Hi Gysbert,


So I have a similar issue: I have two dimensions and a rangesum(above ...) expression. I use the TOTAL statement so that it takes care of the multiple dimension problem.

I get the pivot table to work as wanted and the figures are correct!


Now to my problem: I want to display the output in a line-chart, in fact convert the pivot to a line chart to rather disply it graphically as two lines plotted, one for each dimension (in my case plotted on time dimension, and the time dimension must be the first sorted dimension).


I do not get this to work ....... Do you have any suggestions??


Thank you!

David

Not applicable

I have ended up having a similar issue. My expressions return correct values when used in a straight table, but if I change the type to line chart it just doesn't work anymore. This is especially an issue with above() function and I haven't figured out what is going on. Did you solve your issue?

Not applicable

Hi Henry,

I managed to solve it (with the help of Gysbert, thanks!) by using "accumulate steps back", in my case 99 steps back. This way I do not depend on the rangesum(), function and the line chart displays the correct values. So just rewrite your expression without using rangesum and accumulate it instead. Hope it helps!

BR,

David