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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Enable Conditional for Dimensions

Hi, I just started using QlikView  and am trying to use the Count(DISTINCT(dimension))=1 so that a dimension will only be visible when a single value from a dimension a level above is selected. My dimensions are:

Period

Division

BL

Desk

I am using the expression Count(DISTINCT(dimension))=1 as the condition and this works well for BL

2.png

However, when I select a distinct business line the desks are not displayed.

3.png

It's not until I select a single period that the desk is displayed.

4.png

How can I get the desk to display regardless of the number of periods (creationmonthyear lable) selected?

Thanks,

Brian


3 Replies
Not applicable
Author

I am not really able to understand ur problem, but i believe you can use a function  getselectedcount(fieldname) = 1 to control your dimensions

Not applicable
Author

Sorry, I'll try to clarify.  I'm using the Count(DISTINCT(dimension))=1 to control what data is displayed, so for BL the condition is Count(Distinct(Division))=1.  This works fine.  However, for Desk, the condition Count(DISTINCT(BL))=1 only works when I select a single month-year period like in the final screenshot above.  When a single BL is selected I want the Desk(s) to show regardless of the number of months selected. (Hope this helps clarify)

I tried getselectedcount(fieldname) = 1 but had the same issue.

Not applicable
Author

for BL show/hide condition (when one Division is selected) is true even when u select one BL. may be you write something like.

BL show hide condition : getselectedcount(Division) = 1 and getselectedcount(BL) =0


if you can provide a sample file, it will be easier.