<?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: Combine IF statement with Variable and Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798467#M64627</link>
    <description>&lt;P&gt;hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18966"&gt;@hjm35055&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you tried this?&lt;/P&gt;&lt;P&gt;=if(vShowPeriode=1, count({&amp;lt;EncounterCategory1-={'Non-Encounter Charges'},LMTD_Flag={1}&amp;gt;} DISTINCT ID),&lt;BR /&gt;count({&amp;lt;EncounterCategory1-={'Non-Encounter Charges'},LMTD_Flag=&amp;gt;} DISTINCT ID))&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 19:53:37 GMT</pubDate>
    <dc:creator>JMAROUF</dc:creator>
    <dc:date>2021-04-09T19:53:37Z</dc:date>
    <item>
      <title>Combine IF statement with Variable and Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798414#M64623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a pretty large equation and I am trying to control a portion of set analysis with a variable and am not sure if it is possible.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable: vShowHidePeriod = 1 or 0 depending on the variable input button.&lt;/P&gt;&lt;P&gt;If vShowHidePeriod = 1 then I want 'LMTD_Flag={'1'}' to display in the set analysis, if vShowHidePeriod = 0, then I want&amp;nbsp;'LMTD_Flag=' to show in the set analysis.&lt;/P&gt;&lt;P&gt;Equation I am trying to accomplish:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;EncounterCategory1-={'Non-Encounter Charges'}, IF($(vShowHidePeriod)=1, 'LMTD_Flag={'1'},', 'LMTD_Flag=,'))&amp;nbsp;&amp;gt;} DISTINCT EncounterUID)&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798414#M64623</guid>
      <dc:creator>hjm35055</dc:creator>
      <dc:date>2024-11-16T00:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combine IF statement with Variable and Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798439#M64624</link>
      <description>&lt;P&gt;I've done something similar in Qlikview.&amp;nbsp; Instead of having the button set the variable to 1 or 0, have it set the Set Analysis expression LMTD_Flag = {'1'} or LMTD_Flag=&lt;/P&gt;&lt;P&gt;Then in the expression use the variable, Count({&amp;lt;EncounterCategory1-={'Non-Encounter Charges'},$(vShowHidePeriod)&amp;gt;}Distinct EncounterUID)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 18:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798439#M64624</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2021-04-09T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Combine IF statement with Variable and Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798442#M64625</link>
      <description>&lt;P&gt;I thought about that.&amp;nbsp; The problem is, I want this variable to control additional set analysis on this sheet such as MTD_Flag, YTD_Flag, and LYTD_Flag.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sheet of 10+ KPIs and they are currently set to show the current MTD, LMTD, YTD, and LYTD when you open it.&amp;nbsp; I want to create a variable controlled by an ON or OFF button to allow for dynamic date selection.&amp;nbsp; Essentially says to use date flag set analysis or ignore the date flag set analysis.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 18:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798442#M64625</guid>
      <dc:creator>hjm35055</dc:creator>
      <dc:date>2021-04-09T18:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Combine IF statement with Variable and Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798467#M64627</link>
      <description>&lt;P&gt;hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18966"&gt;@hjm35055&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you tried this?&lt;/P&gt;&lt;P&gt;=if(vShowPeriode=1, count({&amp;lt;EncounterCategory1-={'Non-Encounter Charges'},LMTD_Flag={1}&amp;gt;} DISTINCT ID),&lt;BR /&gt;count({&amp;lt;EncounterCategory1-={'Non-Encounter Charges'},LMTD_Flag=&amp;gt;} DISTINCT ID))&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 19:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-IF-statement-with-Variable-and-Set-Analysis/m-p/1798467#M64627</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2021-04-09T19:53:37Z</dc:date>
    </item>
  </channel>
</rss>

