Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
satishkurra
Specialist II
Specialist II

QlikMaps: Restricting dimension values

Hi

I need to restrict the dimension values for the dimensions County and CountyBoundary below.

Ex: I have 100 Counties and 1000 County Borders, How to restrict the values to show only below values?

Attached is the screen shot of dimension and boundary path

I'm currently using the below expressions in dimensions, It is not working

For County:

=Only({<County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>}County)

For CountyBoundary:

=Only({<County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>}CountyBoundary)

Can someone help me on this?

Thanks

Satish

1 Solution

Accepted Solutions
satishkurra
Specialist II
Specialist II
Author

Got this worked with below expression.

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} County), County)

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>}CountyBoundary), CountyBoundary)

View solution in original post

5 Replies
settu_periasamy
Master III
Master III

Hi,

May be try like this..

=if(MixMatch(County,'DUTCHESS','ORANGE','SULLIVAN',

     'WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'),County)

jagan
Luminary Alumni
Luminary Alumni

HI,

You can try a calculated dimension

=If(MixMatch(County, 'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'), County, Null())


=If(MixMatch(County, 'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'), CountyBoundary, Null())


or you can restrict in expresison like below



Sum({<County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} SomeMeasureName)


Among this the best method is to restrict them in Set Analysis expressions, it is faster.


Hope this helps you.


Regards,

jagan.



satishkurra
Specialist II
Specialist II
Author

The below worked...

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} County), County)

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} CountyBoundary), CountyBoundary)

satishkurra
Specialist II
Specialist II
Author

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} County), County)

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} CountyBoundary), CountyBoundary)

satishkurra
Specialist II
Specialist II
Author

Got this worked with below expression.

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>} County), County)

=Aggr(Only({StateAbbre={'NY'},County={'DUTCHESS','ORANGE','SULLIVAN','WESTCHESTER','PUTNAM','ROCKLAND','ULSTER'}>}CountyBoundary), CountyBoundary)