Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
pkrouglov
Contributor
Contributor

pivot table shows rows that are scoped out

Hi,

Can anybody explain what is going on with my pivot. I have an app with some 12M rows and my pivot behaves somewhat weird.

It shows rows that should not be shown at all. I've made a small example, but could not reproduce the "wrong" behavior.

So, below is the data sample

level1level2level3codedtmtype
ABcd14/7/2016 11:29t
ACcd24/8/2016 11:29t
ADcd34/9/2016 11:29t
ABcd44/10/2016 11:29t
ACcd54/11/2016 11:29t
ADcd64/11/2016 11:29t
ABr1cd14/7/2016 11:29v
ABr1cd24/8/2016 11:29v
ABr2cd34/9/2016 11:29v
ABr2cd44/10/2016 11:29v
ABr2b
ABr3b
ACr4b
ACr5b

Dimensions are level1..3

Expressions:

count({1<type={'v'}>} distinct code)

maxstring({1<type={'v','b'}>} dtm)

If I could reproduce the same on my sample, then

- row (type='t' and level2='D') is shown  when nothing or level1 selection is made

- row (type='t' and level2='D') is not shown when selection of level3 or level2 is made

I've edited below picture to show the wrong behavior.

pivot.png

2 Replies
marcus_sommer

Your set analysis expression contain a 1 as set identifier which meant that all records will be considered and this could cause the displaying from uncompleted records in which some kind of data are missing - very probably this is caused by poor data-quality.

Best suited to find this is a tablebox which includes a unique field like a recno() and/or a rowno() - you need to add this within the load-script - and also to consider to use NULL handling in QlikView.

- Marcus

pkrouglov
Contributor
Contributor
Author

Hi Markus

I've loaded the same data into a new QV file and copy-paste my pivot as object there. I've got the same weird behavior.

Then I've recreated the same pivot using UI and copy-pasted the same expressions. It worked as it should then.

I guess my pivot object was somehow corrupted.

-Pavel