Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Why is qlikview doing this ???

Hi All,

I have two simple tables based on monthly volume and % against target, the only difference is one is per month and the other is cumulative:

Monthly Analysis
monthvolumetargetvolume/target
01/01/201125,21030,00084.03%
01/02/201130,30035,00086.57%
01/03/201129,20032,00091.25%
01/04/201136,50033,000110.61%
121210130000
Year To Date
monthvolumetargetvolume/targetCorrect %
01/01/201125,21030,00084.03%84.03%
01/02/201155,51065,00086.57%85.40%
01/03/201184,71097,00091.25%87.33%
01/04/2011121,210130,000110.61%93.24%

The volume & target expressions are set to full accumulation and the amounts are correct but % is incorrect, table still shows the month % not the cumulative %... aarrrgggh.

I've attached the example and I can't see why this happens do I need to use set analysis or something to get round this simple problem??

Many thanks,

Phil

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You don't need set expression but I think you need inter record functions like above and rangesum:

try

=rangesum(above(sum(volume),0,RowNo()))/rangesum(above(sum(target),0,RowNo()))

as expression.

I think that the full accumulation is done pretty late in chart generation, it is not possible to access the accumulated values easily from other columns.

Stefan

View solution in original post

2 Replies
swuehl
MVP
MVP

You don't need set expression but I think you need inter record functions like above and rangesum:

try

=rangesum(above(sum(volume),0,RowNo()))/rangesum(above(sum(target),0,RowNo()))

as expression.

I think that the full accumulation is done pretty late in chart generation, it is not possible to access the accumulated values easily from other columns.

Stefan

Not applicable
Author

Thanks Stefan, I was trying to chart the variance so didn't think this answer would work, but it let me create the chart then disable the amounts and this % calculation still works to show the correct variance, I've attached the chart I created to show what I mean

Many thanks for your help.

Kind Regards,

Phil