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: 
nikhilgarg
Specialist II
Specialist II

Prob in pivot table

Hey,

In my attached application, for unknown region in pivot table there are shown 4 Names but when i select Desk as Unknown from list box it is showing only 2 names. Pls help.

Thanks

1 Solution

Accepted Solutions
buzzy996
Master II
Master II

just replace this code in ur Main 4  tab with table2,

Table2:

Mapping LOAD isnull(Name,'Unknown', Name) as Name,

     Desk

FROM

(ooxml, embedded labels, table is Sheet1);

View solution in original post

18 Replies
buzzy996
Master II
Master II

tht's because of ur expression defined like this =if(len(Desk) = 0 , 'Unknown' , Desk)

NAME: Y & U having null values tht's lenth it's assuming as 0 so u have 4 in desk (y,u,a,c)

pokassov
Specialist
Specialist

Hi!

It's because you use dimention expression instead of "Desc"

=if(len(Desk) = 0 , 'Unknown' , Desk)

massimilianoruf
Partner - Contributor III
Partner - Contributor III

Hi Nikhil,

this happens because the Dimension of the table is a Calculated Dimension and the values linked to "Unknown" are only  "a" and "c".

qlik.PNG

Massimiliano

nikhilgarg
Specialist II
Specialist II
Author

So , what to do because when i click Unknown it should show Y and /U also

nikhilgarg
Specialist II
Specialist II
Author

So , what to do because when i click Unknown it should show Y and /U also

massimilianoruf
Partner - Contributor III
Partner - Contributor III

You should modify the load script for delete null Desk values.

Load

...

if(IsNull(Desk),'Unknown',Desk) as Desk,

...

Hope this helps,

Massimiliano

jonathandienst
Partner - Champion III
Partner - Champion III

Then I suggest that you convert the nulls to 'Unknown' in the load script:

     LOAD

          ....

          If(Len(Desk) = 0, 'Unknown', Desk) As Desk,

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
buzzy996
Master II
Master II

i think ur using  mapping in script, so pls try this..

Mapping LOAD isnull(Name,'Unknown', Name) as Name

nikhilgarg
Specialist II
Specialist II
Author

Hey,

THankx but i didn't get you. i am already using script that you suggesting