Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Masking or blinding dimension names

Hello,

I am developing an application and need the ability to mask or blind the dimension names for all dimension names with the exception of the dimension value selected.  In my use case below I have a bar chart with a dimension called Department with the following dimension values (Finance, IT, Customer Service, Shipping).  I then select the Finance Department and I would like the bar chart to show Finance as it is the value selected, but would then like to mask the other three departments to show as Dept 1, Dept 2 and Dept 3.

I have tried to add a calculated dimension, but it does not provide the result I am looking for.  Below is an example of what I am trying to achieve. 

Can someone provide a solution to my problem?

Thanks!

DimensionMasking.JPG

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You are selecting and locking the USERID, which is linked to DEPT, so USERID has to be modified in the Dimension:

=aggr(

if(len(only({<DEPT=, USERID=>}DEPT))> 0

,if(only({<DEPT=, USERID=>}DEPT)=Only(DEPT)

,DEPT

, only({1}DeptMasked)

))

, DEPT)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

20 Replies
Not applicable
Author

One thing I failed to mention is that the dimension will be dynamic with changing departments and close to 100 different values at any given time.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

See the attached qvf for an example of what you are asking using the "CategoryName" field.

Dimension:

=aggr(

if(len(only({<CategoryName=>}CategoryName))> 0

,if(only({<CategoryName=>}CategoryName)=Only(CategoryName)

,CategoryName

,'Cat' & FieldIndex('CategoryName', only({<CategoryName=>}CategoryName))

))

, CategoryName)

Measure:

Sum({<CategoryName=>}Sales)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Not applicable
Author

I applied the logic you provided, but now all that I receive in the bar chart object is just the selected dimension.  Do you happen to have a qvw example so I can reference?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Here's a QVW example. If you can't get it working, please post a sample qvw.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Not applicable
Author

Hi Rob, I do not see the attached sample qvw?

Thanks,

Ryan

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I can see the qvw as an attachment to my previous reply. Not sure why you can't see it, maybe it's going through moderation or something. Can you post an example qvw showing the problem you are having?

-Rob

Not applicable
Author

Here is an example of my QVW that I am still having issues with.

Thanks,
Ryan

Not applicable
Author

There is section access and can enter Ryan in the popup box

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You are selecting and locking the USERID, which is linked to DEPT, so USERID has to be modified in the Dimension:

=aggr(

if(len(only({<DEPT=, USERID=>}DEPT))> 0

,if(only({<DEPT=, USERID=>}DEPT)=Only(DEPT)

,DEPT

, only({1}DeptMasked)

))

, DEPT)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com