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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
priyarane
Specialist
Specialist

avoid columns

Hi Community,

I am using Pivot table like below.

child.PNG

I wanted to avoid columns if no data, right now no data available in child8 to child13 but in future we will get. How can I achieve it

- Priya

Labels (1)
5 Replies
sunny_talwar
MVP
MVP

I don't think this would be possible in pivot table. You can try this with straight table with multiple expressions with show/hide conditions

swuehl
Champion III
Champion III

What is your expression?

Try something like

=If( Len(Trim( YourExpression)) , YourExpression)

edit:

Or try conditional dimensions, for your child dimensions, so you would need to create a condition that checks if there are any child values available:

For example for Child_8 dimension:

=Count( Child_8 )

Or

=Count( If(Len(Trim(Child_8)), Child_8))

priyarane
Specialist
Specialist
Author

it is not working out

sunny_talwar
MVP
MVP

Would you be able to share a sample?

swuehl
Champion III
Champion III

Seems to work for me, using my sample data and the dimension conditions:

LOAD * INLINE [

ID,Child1,Child2, Child3

1,C1, C2,C3

2,C1,C2,

3,C1,,

];

2016-06-17 19_03_46-QlikView x64 - [C__Users_Stefan_Downloads_comm221375.qvw_].png

2016-06-17 19_03_55-QlikView x64 - [C__Users_Stefan_Downloads_comm221375.qvw_].png

2016-06-17 19_04_03-QlikView x64 - [C__Users_Stefan_Downloads_comm221375.qvw_].png