<?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 Re: Toggle Between Primary Keys Using Variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Toggle-Between-Primary-Keys-Using-Variables/m-p/2484145#M101124</link>
    <description>&lt;P&gt;Hi, I'm not sure to follow but maybe you could use set analysis on the dashboard measures like:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;&lt;STRONG&gt;IDField={'$(vPrimaryKey)'}&lt;/STRONG&gt;&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;The bold part of set analysis should be in all the expression of the dasboard.&lt;/P&gt;
&lt;P&gt;Or set a button with actions that: unlocks IDField, removes the selections on IDField, makes the new selections on IDField and locks it.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Sep 2024 07:24:15 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2024-09-28T07:24:15Z</dc:date>
    <item>
      <title>Toggle Between Primary Keys Using Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Between-Primary-Keys-Using-Variables/m-p/2484118#M101120</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;Hello,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;I have been tasked with creating a dashboard that allows users to toggle between two different unique IDs, using them as the primary key. By default, the dashboard loads with `ID_1`, but users should be able to switch to `ID_2` through a variable toggle.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;My question is: how can I configure this variable and apply it in the visualizations? Should I use something like a `vPrimaryKey` variable as a measure, or is there a better approach to handle this requirement?&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;I would appreciate any guidance or alternative solutions. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 20:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Between-Primary-Keys-Using-Variables/m-p/2484118#M101120</guid>
      <dc:creator>Asuod_</dc:creator>
      <dc:date>2024-09-27T20:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Between Primary Keys Using Variables</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Between-Primary-Keys-Using-Variables/m-p/2484145#M101124</link>
      <description>&lt;P&gt;Hi, I'm not sure to follow but maybe you could use set analysis on the dashboard measures like:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;&lt;STRONG&gt;IDField={'$(vPrimaryKey)'}&lt;/STRONG&gt;&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;The bold part of set analysis should be in all the expression of the dasboard.&lt;/P&gt;
&lt;P&gt;Or set a button with actions that: unlocks IDField, removes the selections on IDField, makes the new selections on IDField and locks it.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 07:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Between-Primary-Keys-Using-Variables/m-p/2484145#M101124</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-09-28T07:24:15Z</dc:date>
    </item>
  </channel>
</rss>

