<?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: Using IF with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455745#M170125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because first curly bracket is underlined and it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant send it because od sensitive data, sorry. But..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (If (year_DI = KPI.Year and month_DI = KPI.Month, {$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; } KPI_Work.Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(If (year_DI = KPI.Year and month_DI = KPI.Month, &lt;/EM&gt;- This part is about data island and selecting year and month from correct dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; }&lt;/EM&gt; - this part is about set analysis, which make calculation resistant from other selects over other date dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mirek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Sep 2012 15:48:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-30T15:48:12Z</dc:date>
    <item>
      <title>Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455743#M170123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this expession:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(year_DI = KPI.Year and month_DI = KPI.Month, Sum({$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; } KPI_Work.Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression wait for user select and works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need expression (no wait for user select):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (If (year_DI = KPI.Year and month_DI = KPI.Month, {$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; } KPI_Work.Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this not work, the set analyse is problem in this syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mirek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 15:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455743#M170123</guid>
      <dc:creator />
      <dc:date>2012-09-30T15:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455744#M170124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why you say that the set part has an error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send a reduced copy please..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 15:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455744#M170124</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-09-30T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455745#M170125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because first curly bracket is underlined and it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant send it because od sensitive data, sorry. But..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (If (year_DI = KPI.Year and month_DI = KPI.Month, {$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; } KPI_Work.Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(If (year_DI = KPI.Year and month_DI = KPI.Month, &lt;/EM&gt;- This part is about data island and selecting year and month from correct dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; }&lt;/EM&gt; - this part is about set analysis, which make calculation resistant from other selects over other date dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mirek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 15:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455745#M170125</guid>
      <dc:creator />
      <dc:date>2012-09-30T15:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455746#M170126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put the sum in the if statement not outside :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;If (year_DI = KPI.Year and month_DI = KPI.Month, sum({$ &amp;lt;KPI_Reader.Year= ,&amp;nbsp; KPI_Reader.Month= &amp;gt; } KPI_Work.Sales))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 15:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455746#M170126</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-09-30T15:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455747#M170127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I have now.. But to start calculate, user must do select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate before select. Here is example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ( If ( Salesman='Helen', Sales)) - calculating Sales always&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (Salesman='Helen', Sum(Sales)) - waiting for user select&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 16:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455747#M170127</guid>
      <dc:creator />
      <dc:date>2012-09-30T16:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455748#M170128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure what you mean actually but if you omit the if, user does not need to select :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Salesman={"Helen"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will always sum sales for Helen even if another salesman is selected, and not Helen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 16:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455748#M170128</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-09-30T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455749#M170129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you need (I have just corrected the syntax on the second statement in your original post)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;KPI_Reader.Year=, KPI_Reader.Month=&amp;gt;} If (year_DI = KPI.Year and month_DI = KPI.Month,&amp;nbsp; KPI_Work.Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS you could also put what's in the If statement into the set expression, but the syntax depends on whether the items are fields or variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2012 17:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455749#M170129</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-30T17:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455750#M170130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the example of my problem. I have 2 different dates in two tables - Reader and Work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first table I count fact and to get right number I must select date (Year and Month) from this table (Reader).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second table I count other two facts and to get correct number I must select date (Year and Month) from this table (Work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use Data Island and use set analysis to make expressions resistant for other date dimension select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 09:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-with-set-analysis/m-p/455750#M170130</guid>
      <dc:creator />
      <dc:date>2012-10-04T09:48:59Z</dc:date>
    </item>
  </channel>
</rss>

