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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Any alternatives for empty expression in a Pivot table ?

Hi All,

I have created a Pivot Table with 3 dimensions. However, Pivot table requires an expression which I have created an empty one in order to show the data(in text form).

The result is what I wanted with one minor issue.  There is a empty row at the end of each row for each group.  Below illustrate an example with highlighted rows:

Qns 2.jpg

You may ask why I don want to create an expression.  This is because I have tried to create one but the data displayed is not what I want.  Eg. If I create an expression, the "this is a comment 2" will not be shown.  They will show only one comment per qns instead which to me is loss of data displayed.

Any one has encounter similar problem before that can help on this ?

Would appreciate some help here.

thanks!

1 Solution

Accepted Solutions
qlikpahadi07
Specialist
Specialist

Check my Solution attached :

I think i understood your problem correctly it's working with Data so must b with Blanks .

View solution in original post

20 Replies
marcus_sommer

I don't sure if I have you understood, but perhaps the attachment is helpful for you.

- Marcus

Anonymous
Not applicable
Author

Hi,

In the properties of your pivot table, in "dimensions", for each dimension you have an option to delete null values.

nizamsha
Specialist II
Specialist II

in presentation   tab un check the show partical sum

Not applicable
Author

Hi,

possible to paste the code as I am using Personal edition and awaiting for Enterprise version to arrive.

Thanks!

Not applicable
Author

Hi Marcus,

possible to paste the code as I am using Personal edition and awaiting for Enterprise version to arrive.

Thanks!

Not applicable
Author

Hi Wassenaar,

possible to paste the code as I am using Personal edition and awaiting for Enterprise version to arrive.

Thanks!

Not applicable
Author

Hi,

Below are the codes for better understanding:

First Dimension

EOR_Subject_Name

Second Calculated Dimension

=If(Len(EOR_Questions)>14 and WildMatch(EOR_Questions,'*27*','*28*','*29*')>0 ,EOR_Questions)

Third Calculated Dimension

=If(Len(EOR_Questions)>14 and WildMatch(EOR_Questions,'*27*','*28*','*29*')>0 ,Data)

Expression

= ' '

The first post where there is value of NA is due to null value.  Under Presentation Tab, I have input 'NA' for null values and missing symbol.  Even though I checked 'Suppress Missing Values' OR 'Suppress Zero-Values' but to no valid.

Any one can help on this.

marcus_sommer

I don't still understand what is your aim - I assume that your confusion caused only about the settings partial sums and showing null-values.

- Marcus

Not applicable
Author

Dear Marcus,

AIM: To remove the highlighted rows in the shown diagram. 

Partial Sums and Null Values are turned off already.  My data is text, not numeric.

Qns 2.jpg

Below is the codes that I have written to show the above data.  If I used the calculated dimension as Expression.  It will not show the result that I wanted. Only solution is to use them as calculated dimensions then the correct data will be shown.  However, to show the desired result, an empty expression is to be needed. This in turn create the highlighted rows (in Yellow) which I don want. 

The problem now is to get rid of the highlighted rows.

Hope this clears up, thanks!

First Dimension

EOR_Subject_Name

Second Calculated Dimension

=If(Len(EOR_Questions)>14 and WildMatch(EOR_Questions,'*27*','*28*','*29*')>0 ,EOR_Questions)

Third Calculated Dimension

=If(Len(EOR_Questions)>14 and WildMatch(EOR_Questions,'*27*','*28*','*29*')>0 ,Data)

Expression

= ' '