<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Selecting values based on multiple states in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100143#M15951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field, RiskFactor, that appears in 3 listboxes, 1 for each alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RiskFactor can not be selected in the default state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is select another field, Patient_Key, based on the selections made from the 3 alternate states (Risk 1, Risk 2, Risk 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, this would give me only those Patient_Key's that have all of the RiskFactors that were selected and NOT just one of them (like a list box does).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 13:22:25 GMT</pubDate>
    <dc:creator>cbushey1</dc:creator>
    <dc:date>2018-08-02T13:22:25Z</dc:date>
    <item>
      <title>Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100143#M15951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field, RiskFactor, that appears in 3 listboxes, 1 for each alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RiskFactor can not be selected in the default state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is select another field, Patient_Key, based on the selections made from the 3 alternate states (Risk 1, Risk 2, Risk 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, this would give me only those Patient_Key's that have all of the RiskFactors that were selected and NOT just one of them (like a list box does).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 13:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100143#M15951</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-02T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100144#M15952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In QlikView there is something called AND-mode which is meant for the purpose you are describing. A list box is default in an OR-mode but can be toggled into an AND-mode in it's properties dialog under certain conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/And-mode%20in%20List%20Boxes.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/And-mode%20in%20List%20Boxes.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/And-mode%20in%20List%20Boxes.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3219"&gt;AND-Mode&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 13:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100144#M15952</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-02T13:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100145#M15953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter thanks for mentioning that option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use that with the alternate states method I outlined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 14:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100145#M15953</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-02T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100146#M15954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is your data model - specifically when it comes to the tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PATIENT&lt;/P&gt;&lt;P&gt;PATIENT_RISKFACTORS&amp;nbsp;&amp;nbsp; (if it exists)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;RISKFACTORS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 14:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100146#M15954</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-02T14:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100147#M15955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patient table houses the Patient_Key field I am after, and it is joined to a table called RiskFactors which has two fields, Patient_ID and RiskFactor. PatientID is also in the Patient table so that is how they are joined.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100147#M15955</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-02T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100148#M15956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the AND-mode listbox you will not need the alternate states as you select all the risk factors from a single list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-02 20_14_50-Edit Script [C__Users_Petter_Downloads_Patient Risks AND mode.qvw].png" class="jive-image image-1" src="/legacyfs/online/209740_2018-08-02 20_14_50-Edit Script [C__Users_Petter_Downloads_Patient Risks AND mode.qvw].png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-02 20_15_22-List Box Properties [Factor].png" class="jive-image image-2" src="/legacyfs/online/209750_2018-08-02 20_15_22-List Box Properties [Factor].png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You multi-select by holding the CTRL-key down while clicking. You will see that the other possible selections will be in white and if these are not to be considered for the final selected patient you will have to turn them into NOT selections that have the ! and red background as an indicator. Read more about that in the links I gave you previously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 18:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100148#M15956</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-02T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100149#M15957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this approach but this doesnt really solve the question. I need a way to select the population in the default/current state, based on selections made in other states. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example I listed is a simplified version of what I am doing in the application and many things are relying on the different states. The thing that will make what I built truly useful is being able to make this selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 14:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100149#M15957</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-06T14:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100150#M15958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something along the line of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Patient_Key&lt;/SPAN&gt;=P({Risk1})&amp;gt; * &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Patient_Key&lt;/SPAN&gt;=P({Risk2})&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Patient_Key&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 18:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100150#M15958</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-06T18:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100151#M15959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I get my expression into a button to select the population?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have my populations being displayed on the screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Sum([Risk1]*[Risk2]*[Risk3]*$ Patient_Count),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to translate that into a button as I dont know how to add an expression as part of the actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100151#M15959</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-06T19:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100152#M15960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your button, use a Select In Field action.&lt;/P&gt;&lt;P&gt;1. Field: &lt;SPAN style="font-family: 'courier new', courier;"&gt;Patient_Key&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Search Expression:&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt;='(' &amp;amp; concat({Risk1*Risk2*Risk3}Patient_Key, '|') &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That assumes your Patient_Key values have no spaces, if they do you have to mess with adding quotes into the search expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100152#M15960</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-06T19:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100153#M15961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this works pretty well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to get this to just say "87 out of X" instead of listing all the keys (which I think it does because we concatenated them"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="selections.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210018_selections.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 20:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100153#M15961</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-06T20:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100154#M15962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that I know of. Perhaps &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ has an idea.&amp;nbsp; His article on Compound Search &lt;A href="https://community.qlik.com/docs/DOC-15671"&gt;Compound Search - demystified&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;is recommending reading as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 21:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100154#M15962</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-06T21:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100155#M15963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding a second action to your button,&amp;nbsp; 'Selection - Select possible' in field Patient_Key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 06:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100155#M15963</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-08-07T06:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting values based on multiple states</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100156#M15964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you that worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help guys, appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-values-based-on-multiple-states/m-p/100156#M15964</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2018-08-07T13:21:57Z</dc:date>
    </item>
  </channel>
</rss>

