Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Toggle Select Calculated Field selection

Hi  All,

Sorry for putting up this question., but have been trying for hours to get this right.

Scenario:

Have a geographical alignment table:

-----------------------------------------------------

Region| District | Territory | Zip

-----------------------------------------------------

Now, i am flagging few geographies based on threshold of a metric

Current Scene: The button B1, has a toggle select action which selects the flagged of geographies for the data grid in bottom to display.

Problem: The expression

     =if([Geography Level]='Nation',REGION_ID,

if([Geography Level]='Region',DISTRICT_ID,

if([Geography Level]='District',TERRITORY))) in the Field: input does not work.

Note: The Search String is being passed in the (Geo 1|Geo 2) format.

if i assign a static field name to Field box it works. But it has to be dynamic based on the geaographical view of the report.

Any help will be greatly appreciated.

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use field name in quotes as below

    

=if([Geography Level]='Nation','REGION_ID',

if([Geography Level]='Region','DISTRICT_ID',

if([Geography Level]='District','TERRITORY')))

Hope it helps

Celambarasan

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use field name in quotes as below

    

=if([Geography Level]='Nation','REGION_ID',

if([Geography Level]='Region','DISTRICT_ID',

if([Geography Level]='District','TERRITORY')))

Hope it helps

Celambarasan

Not applicable
Author

Works, and i feel a lot stupider. Thanks a lot