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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Line chart vs Pivot chart

I have created a pivot tabel wich has the correct calculations, but when transforming it in to a line chart the output is transformed (see screenshot). Why does not the line chart present the same values as the pivot table and how should I do to do so? The expression is the same in the pivotchart as in the line chart.

[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8030.Problem-Linje-graf.pptx:550:0]

6 Replies
tresesco
MVP
MVP

Can you upload your Application - sample ?

Regards,

tresesco

Not applicable
Author

Hi,

Use this data set (could not upload the qvw file) and use the two dimensions week, Brand with the following expression:

RangeAvg(Above(Count(Brand)),Count(Brand),Below(Count(Brand)))/RangeAvg(above(Count({<Brand=>}Total<Week> Week)),Count({<Brand=>}Total<Week> Week),below(Count({<Brand=>}Total<Week> Week)))

[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0285.Sample.xlsx:550:0]

tresesco
MVP
MVP

See, i am not getting any difference. Refer to the attached image.

If the issue still persist for you, i think its not because of chart presentation difference, but because of special behavior of Pivot table in case of duplicate data. Check that point, if your modelling creating multiple values against a single combination of dimensions.

Regards,

tresesco

Not applicable
Author

Nope,

it's easier to see the discrepancy if you place weeks on the x-axis.

Try to create the same as on sceenshot attached.

As you can see the levels do not match at all between the line and the column Annat.

tresesco
MVP
MVP

Still No difference !

Not applicable
Author

I see now! The result changes when drawing out brand to columns. Otherwise the calculation ends up wrong. The chart does not take that in to account and thus I need to find out how i shall construct the chart in order to match the pivot table where brands are in columns.