<?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: Replacement IF condition by set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478623#M1235067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A name="_GoBack"&gt;&lt;/A&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that your problem is to set a variable with several months on it.&lt;/P&gt;&lt;P&gt;This is what I usually do:&lt;/P&gt;&lt;P&gt;Imagine I have selected 3 months Jan, Feb, Jun. To pick them up in a var, &lt;/P&gt;&lt;P&gt;vMonth&amp;nbsp;&amp;nbsp; concat(distinct Month,’”’) work out the quotations and it is yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your set analysis Month={$('vMonth)'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recomend you to use set analysis instead of ifs clauses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 16:30:41 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2013-10-16T16:30:41Z</dc:date>
    <item>
      <title>Replacement IF condition by set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478621#M1235060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got an expression with IF condition. It work's too slow. I want to change it to set analysis,&lt;/P&gt;&lt;P&gt;1. Expression with IF (it works fine):&lt;/P&gt;&lt;P&gt;sum(aggr( count (DISTINCT&amp;nbsp; if([Month] = [DistMonth],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [CholdingID])),Fil, [MY],[CholdingID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. My expression:&lt;/P&gt;&lt;P&gt;count(Aggr(sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;[Month] = {"=[Month]=[DistMonth]"}&amp;gt;}&lt;/P&gt;&lt;P&gt;1),Fil,[Month],[CholdingID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main trouble is in marking multiply values in [DistMonth]. When i use first expression everything works fine. But with second expression I cant chose&amp;nbsp; multiply values. Second expression works with single value of [DistMonth] only. When i try to get two values of [DistMonth] it dont show me two values in dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478621#M1235060</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replacement IF condition by set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478622#M1235063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis calculates one set per chart, not per row. That means that comparing fields on the same row probably doesn't do what you expect. I've tried to explain what happens in this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4563"&gt;set_analysis_intra-record.qvw&lt;/A&gt;. I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 16:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478622#M1235063</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-16T16:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replacement IF condition by set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478623#M1235067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A name="_GoBack"&gt;&lt;/A&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that your problem is to set a variable with several months on it.&lt;/P&gt;&lt;P&gt;This is what I usually do:&lt;/P&gt;&lt;P&gt;Imagine I have selected 3 months Jan, Feb, Jun. To pick them up in a var, &lt;/P&gt;&lt;P&gt;vMonth&amp;nbsp;&amp;nbsp; concat(distinct Month,’”’) work out the quotations and it is yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your set analysis Month={$('vMonth)'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recomend you to use set analysis instead of ifs clauses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 16:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478623#M1235067</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-10-16T16:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replacement IF condition by set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478624#M1235070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacement-IF-condition-by-set-analysis/m-p/478624#M1235070</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2013-10-17T13:27:06Z</dc:date>
    </item>
  </channel>
</rss>

