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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straigh/Pivot Table issue

Hi there,

I am a little bit confused and I need your advice asap.

Could you please see the attached qvw and help me reach the correct results?

I don't want to see doublications to the first column and I want to see the correct numbers (see text object). I have no idea what pivot does to the final results is it the Total Mode or something else?

Please check out the attachment and let me know if you need further info.

Regards,

Helen

Labels (1)
1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

It's because in your first table, you have a bunch of hidden dimensions (which affects the values you will get). I reduced it to find that Units FC1 14 changes the values once i removed it from the first table. Therefore for the second, I simply used the aggr function for the 2 expressions, aggregating them by [Profit center text] and [Units FC1 14]. I attached the qvw. The expressions were:

sum(aggr(sum([Sales FC1 14])-sum([Sales BU14]), [Profit center text], [Units FC1 14]))

sum(aggr(sum([Sales FC1 14]/[Units FC1 14]-[Sales BU14]/[Units BU14])*[Units FC1 14], [Profit center text], [Units FC1 14]))

Now you should double check the numbers to make sure that they are indeed the correct values that you want.

Hope this helps!

View solution in original post

8 Replies
Anonymous
Not applicable
Author

Hello,

Basically these 2 are mathematically different. 

BR

Serhan

Not applicable
Author

Hi Eleni,

you just need go inside properties then choose number tab then in format pattern and change into this - ###0


see the below image

Capture2.PNG

Not applicable
Author

Hi guys,

Thank you both for your answers but the problem is not the format.

Is that in the Straight table the dimension is doublicated....I want to only one row...........

Not applicable
Author

Anyboby???

Not applicable
Author

it will work on pivot table

Not applicable
Author

Unfortunately no,

because as you can see in the QV1.qvw when I am using Pivot table the results for the second and third expression are wrong when the second dimension is collapsed....

Any ideas?

jerem1234
Specialist II
Specialist II

It's because in your first table, you have a bunch of hidden dimensions (which affects the values you will get). I reduced it to find that Units FC1 14 changes the values once i removed it from the first table. Therefore for the second, I simply used the aggr function for the 2 expressions, aggregating them by [Profit center text] and [Units FC1 14]. I attached the qvw. The expressions were:

sum(aggr(sum([Sales FC1 14])-sum([Sales BU14]), [Profit center text], [Units FC1 14]))

sum(aggr(sum([Sales FC1 14]/[Units FC1 14]-[Sales BU14]/[Units BU14])*[Units FC1 14], [Profit center text], [Units FC1 14]))

Now you should double check the numbers to make sure that they are indeed the correct values that you want.

Hope this helps!

Not applicable
Author

That works!

Thanks a lot Jeremiah!