<?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 Flag Display in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143717#M20372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&amp;nbsp; I think I'm missing a piece.&lt;/P&gt;&lt;P&gt;Is this something I could set in the script or?&lt;/P&gt;&lt;P&gt;I'm considering using a Branch Extension&amp;nbsp; - either way, vVar is set as a variable, and toggled as 1 or 0 by user.&lt;/P&gt;&lt;P&gt;I was hoping to end up with a set analysis expression in all my elements perhaps?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp; Item&lt;/P&gt;&lt;P&gt;Measure:&amp;nbsp; Count({$&amp;lt;$(vVar) = {$(vVar)}&amp;gt;} Items)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need that 'if' statement to be present somewhere however, thereby setting the condition.&amp;nbsp; Just not sure where to put it.&lt;/P&gt;&lt;P&gt;Also, would you mind explaining &lt;EM&gt;why&lt;/EM&gt; it works?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Aug 2016 16:32:57 GMT</pubDate>
    <dc:creator>joey_lutes</dc:creator>
    <dc:date>2016-08-06T16:32:57Z</dc:date>
    <item>
      <title>Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143715#M20370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have what I think should be a simple task, but for some reason is defeating me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my table, there are items that periodically need to be upgraded - on a date.&lt;/P&gt;&lt;P&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Upgrade&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/10/2016&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/04/2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you'll notice, there are 3 items, 2 needing upgrades.&amp;nbsp; I have created a flag (UpgradeFlag) in the script = 1, 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to show charts/graphs where either UpgradeFlag=1, OR All.&amp;nbsp; (meaning a user can see metrics based on all items, or just those needing upgrades)&lt;/P&gt;&lt;P&gt;Sounds so simple!&lt;/P&gt;&lt;P&gt;Variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 15:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143715#M20370</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-06T15:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143716#M20371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the a variable assigned to a button to toggle between 1 and 0 and then the variable can be used like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vVar = 1, If(UpgradeFlag = 1, Upgrade), Upgrade)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now when vVar = 1, you will see Upgarde Needed Items and When vVar = 0, you will see all items&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 16:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143716#M20371</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-06T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143717#M20372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&amp;nbsp; I think I'm missing a piece.&lt;/P&gt;&lt;P&gt;Is this something I could set in the script or?&lt;/P&gt;&lt;P&gt;I'm considering using a Branch Extension&amp;nbsp; - either way, vVar is set as a variable, and toggled as 1 or 0 by user.&lt;/P&gt;&lt;P&gt;I was hoping to end up with a set analysis expression in all my elements perhaps?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp; Item&lt;/P&gt;&lt;P&gt;Measure:&amp;nbsp; Count({$&amp;lt;$(vVar) = {$(vVar)}&amp;gt;} Items)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need that 'if' statement to be present somewhere however, thereby setting the condition.&amp;nbsp; Just not sure where to put it.&lt;/P&gt;&lt;P&gt;Also, would you mind explaining &lt;EM&gt;why&lt;/EM&gt; it works?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 16:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143717#M20372</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-06T16:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143718#M20373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not a Dual Flag&lt;/P&gt;&lt;P&gt;if(Your Condition , (DUAL('Upgrade needed',1) , DUAL('Upgrade not needed',2)) as UpgradeFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Add the UpgradeFlag Field as List box to filter on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2016 09:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143718#M20373</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-07T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143719#M20374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Vineeth - I thought of that, but I don't need to know 'not needed' - just 'needed'/'flagged'&amp;nbsp; or 'all.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still having trouble figuring out exactly how to show that effectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2016 18:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143719#M20374</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-07T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143720#M20375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify, my intent is to have a toggle button on the dashboard that says 'Upgrades Only'&lt;/P&gt;&lt;P&gt;If it's toggled to 'on', then only items needing upgrade will show, if 'off', then all items will show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would affect every element on the dashboard - graphs, charts and tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I believe Sunny's solution would work, I'm not sure exactly where to implement it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;So if there was a table like this when the button was 'off':&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Upgrade&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/10/2016&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/04/2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the user clicked the button 'on', the following table would change to display:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Upgrade&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/10/2016&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/04/2016&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've employed this &lt;A href="http://branch.qlik.com/#!/project/5707bebe1ec7e87c13ab4a40" title="http://branch.qlik.com/#!/project/5707bebe1ec7e87c13ab4a40"&gt;Qlik Branch&lt;/A&gt;‌ &lt;SPAN style="line-height: 1.5em;"&gt;solution, which seems to work well.&amp;nbsp; I have the variable vUpgrade set, and it toggles 1 and 0 appropriately.&amp;nbsp; I need a way to map vUpgrade=1 = UpgradeFlag=1, while vUpgrade=0 = UpgradeFlag 1 AND 0 (or just [item], either way)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143720#M20375</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-08T20:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143721#M20376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While not necessarily as effective as I'd hoped, I did discover an answer for this for charts/KPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(vUpgrade)=1, count({$&amp;lt;UpgradeFlag = {'1'}&amp;gt;}distinct Item), count(distinct Item))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still working on the one for a table.&amp;nbsp; What I have currently is not really working as designed:&lt;/P&gt;&lt;P&gt;if($(vUpgrade)=1, Only({$&amp;lt;UpgradeFlag = {'1'}&amp;gt;}Item), Item)&lt;/P&gt;&lt;P&gt;It does change the table a bit, but not quite the way I was hoping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still open to better ideas.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 21:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143721#M20376</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-09T21:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Flag Display</title>
      <link>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143722#M20377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After scouring the Internet and lots of trial and error, I came up with the answer and wanted to share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Charts/Graphs, the following expression works:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;if($(vUpgrade)=1, count({$&amp;lt;UpgradeFlag = {'1'}&amp;gt;}distinct Item), count(distinct Item))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;For a straight table, the expression that works is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;if($(vUpgrade)=1, aggr(if(UpgradeFlag=1, Item), Item), Item)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 15:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Toggle-Flag-Display/m-p/1143722#M20377</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-08-18T15:22:13Z</dc:date>
    </item>
  </channel>
</rss>

