Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a tab with a straight table where I put a number of conditional dimensions and expressions, that users can select to create ad-hoc reports.
But once they select more than 6 columns, the table does not display anything anymore.
I know I read a solution about this problem here a few months ago, but I can't remember what it was, and I was unable to find the thread. 😕
Thank you in advance.
The getfieldselections function is messing things up because it has a default number of results it will show as list of values. If everything is selected it will return 'ALL'. Instead use expressions like this one: max(Match(Dimension,'Customer Code'))
Or go a step further and implement the technique outlined in this document: Customisable Straight (and Pivot) Tables - more food for thought
Can you post a small example qlikview document that demonstrates the problem?
Sorry, it took me a few minutes to create a test qlikview document.
Here's a fairly simple example. I already selected six dimensions, but if I select a seventh one (in this case Product code), then they all disappear and I'm left with only the values in my table.
I remember the solution was simple, but unfortunately, I can't remember what it was. 😕
The getfieldselections function is messing things up because it has a default number of results it will show as list of values. If everything is selected it will return 'ALL'. Instead use expressions like this one: max(Match(Dimension,'Customer Code'))
Or go a step further and implement the technique outlined in this document: Customisable Straight (and Pivot) Tables - more food for thought
Hi, when you select all the dimensions, the Current Selections turn to ALL, which screws up your index(GetFieldSelections(Dimension),'Customer Code')>0 etc.
Add a current Selections box to your tab to see it in action.
NINJA'D by gwassenaar !!!!
Hi there.
I personally use the SubStringCount(Concat(Dimension, '|'), '<Dimension Name>') to show dimensions, this way there is no issue. I've attached an example where I've replaced your conditional expressions using this.
Hope this helps
Derek
SubstringCount has its own issue. Two dimensions: 'Product' and 'Product Category'. Both will show when you select 'Product' in the dimension listbox if you use substringcount like your example does.
Yes very true Gysbert, I forgot about that.
Hi,
Use wildmatch with Concat ,, It works for me
See the attached
Thanks! Adding the current selections box made me understood why my function was screwed up.