<?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: If Expression to Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769095#M717352</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9788"&gt;@qlikwiz123&lt;/a&gt;&amp;nbsp; not sur I understand, but&lt;/P&gt;&lt;P&gt;with this input&lt;/P&gt;&lt;P&gt;if Dimension is ID and Year&lt;/P&gt;&lt;P&gt;and measure is Count(total&amp;lt;YEAR&amp;gt; ID) *25&lt;/P&gt;&lt;P&gt;I can get the same output like :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 446px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45798i45F71873A6809EF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 20:56:37 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-12-16T20:56:37Z</dc:date>
    <item>
      <title>If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769084#M717346</link>
      <description>&lt;P&gt;=If(Year=Max(TOTAL &amp;lt;ID&amp;gt; Year), (Count(Distinct ID)) * 25)&lt;/P&gt;&lt;P&gt;This expression only gives me the result if I select a year. How can I change this to Set Analysis so that this expression provides an output for all the years?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769084#M717346</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2024-11-15T23:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769086#M717347</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9788"&gt;@qlikwiz123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maye be :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;count({$&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;} Distinct ID)*25&lt;/LI-CODE&gt;&lt;P&gt;or share your data and the expected output&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769086#M717347</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-12-16T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769088#M717349</link>
      <description>&lt;P&gt;This is just giving me 0's. I have a Total function and not sure how to use it in Set Analysis. The Data is huge and confidential, so not able to share the QVW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Year 2022, since there is only one ID, it should be 1*25&lt;/P&gt;&lt;P&gt;For year 2027, since there are two IDs, it should be 2*25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; YEAR&amp;nbsp; &amp;nbsp; &amp;nbsp;Output&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2022&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2023&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2025&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2030&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25&lt;/P&gt;&lt;P&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2027&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;&lt;P&gt;7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2027&amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769088#M717349</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-12-16T20:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769089#M717350</link>
      <description>&lt;P&gt;can you give just a dummy data and the expected.&lt;/P&gt;&lt;P&gt;ID,YEAR&lt;/P&gt;&lt;P&gt;1,2020&lt;/P&gt;&lt;P&gt;2,2019&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;i I understood correctly&lt;/P&gt;&lt;P&gt;dimension Year and Measure count(distinct ID) *25?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769089#M717350</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-12-16T20:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769093#M717351</link>
      <description>&lt;P&gt;Please look into my previous response for the Output I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension is &lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression Measure is&amp;nbsp;&lt;STRONG&gt;If(Year=Max(TOTAL &amp;lt;ID&amp;gt; Year), (Count(Distinct ID)) * 25)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I just simply do Count(Distinct ID) *25, then it multiplies for every year&lt;/P&gt;&lt;P&gt;So I need to make sure Count(Distinct ID) * 25 is happening in those rows where the year is 2027 in this case.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769093#M717351</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-12-16T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769095#M717352</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9788"&gt;@qlikwiz123&lt;/a&gt;&amp;nbsp; not sur I understand, but&lt;/P&gt;&lt;P&gt;with this input&lt;/P&gt;&lt;P&gt;if Dimension is ID and Year&lt;/P&gt;&lt;P&gt;and measure is Count(total&amp;lt;YEAR&amp;gt; ID) *25&lt;/P&gt;&lt;P&gt;I can get the same output like :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 446px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45798i45F71873A6809EF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769095#M717352</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-12-16T20:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769096#M717353</link>
      <description>&lt;P&gt;To make it simple,&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;} TOTAL &amp;lt;Year&amp;gt; Distinct ID) * 25&lt;/P&gt;&lt;P&gt;This Set Expression works when I select a year. I need a way to evaluate this even without making any selection on Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769096#M717353</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-12-16T20:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: If Expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769100#M717354</link>
      <description>&lt;P&gt;I think the sample data was too clean and straightforward. It works with this simple set but not in my data.&lt;/P&gt;&lt;P&gt;The only thing that works is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({$&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;} TOTAL &amp;lt;Year&amp;gt; Distinct ID) * 25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This Set Expression works when I select a year. I need a way to evaluate this even without making any selection on Year&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 21:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Expression-to-Set-Analysis/m-p/1769100#M717354</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-12-16T21:07:35Z</dc:date>
    </item>
  </channel>
</rss>

