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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
dhborchardt
Partner - Creator
Partner - Creator

Choose which Column to use

I have an application that looks at different service areas indicated by zip codes. I can click on P and view only the zip codes that are in the primary service area, S and get secondary etc. I now need to be able to look at a second hospital which has different primary/secondary service areas. If I need to analyse Hospital 1, I will use the first column or (Hospital 1) to determine primary, secondary etc.. If I need to analyse hospital 2 I will use the second column or (Hospital 2). The application has four tabs and I hate to just recreate all four tabs. Is there a way to use a toggle button to select the column that gets used or is there some way I am not thinking of. I have included a very simplified example of the data below.

ServiceArea.JPG.jpg

Labels (1)
1 Solution

Accepted Solutions
MarcoWedel
MVP
MVP

Hi Dale,

you could try a crosstable load of your data.

This should give multiple possibilities to display and select your data as descibed:

table1:

CrossTable(Hospital ,ServiceArea, 1)

LOAD [Zip Code], Hospital1, Hospital2

INLINE [

    Hospital1, Hospital2, Zip Code

    P, N, 57834

    S, S, 57921

    P, S, 57333

    N, P, 57612

    S, S, 57002

];

QlikCommunity_Thread_119960_Pic1.JPG.jpg

QlikCommunity_Thread_119960_Pic2.JPG.jpg

QlikCommunity_Thread_119960_Pic3.JPG.jpg

QlikCommunity_Thread_119960_Pic4.JPG.jpg

QlikCommunity_Thread_119960_Pic5.JPG.jpg

hope this helps

regards

Marco

View solution in original post

2 Replies
MarcoWedel
MVP
MVP

Hi Dale,

you could try a crosstable load of your data.

This should give multiple possibilities to display and select your data as descibed:

table1:

CrossTable(Hospital ,ServiceArea, 1)

LOAD [Zip Code], Hospital1, Hospital2

INLINE [

    Hospital1, Hospital2, Zip Code

    P, N, 57834

    S, S, 57921

    P, S, 57333

    N, P, 57612

    S, S, 57002

];

QlikCommunity_Thread_119960_Pic1.JPG.jpg

QlikCommunity_Thread_119960_Pic2.JPG.jpg

QlikCommunity_Thread_119960_Pic3.JPG.jpg

QlikCommunity_Thread_119960_Pic4.JPG.jpg

QlikCommunity_Thread_119960_Pic5.JPG.jpg

hope this helps

regards

Marco

dhborchardt
Partner - Creator
Partner - Creator
Author

Thank you. That did the job.