<?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: Set analysis using if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162058#M378738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a few minor changes and this is how it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_IMPACT_MINS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;0,1- (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_IMPACT_MINS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MINS_IN_MON&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 05:55:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-24T05:55:29Z</dc:date>
    <item>
      <title>Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162051#M378731</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;I need to calculate service availability by using outage mins and total mins.&lt;/P&gt;&lt;P&gt;Fields are as below -&lt;/P&gt;&lt;P&gt;Total mins - MINS_IN_MON &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Outage mins - &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_IMPACT_MINS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Outage month - PERIOD NAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;I need to display YTD values only if Outage mins are greater than zero, and the&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; formula needs to be independent of the filter Outage month i.e. PERIOD NAME&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Formula for service availability is 1 - (&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_IMPACT_MINS&lt;/SPAN&gt;/MINS_IN_MON ). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody please help to write the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162051#M378731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-24T05:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162052#M378732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would you like to aggregate the service availability over multiple months? I assume an average. Something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=Avg(Aggr(1 - (CUSTOMER_IMPACT_MINS/MINS_IN_MON), [PERIOD NAME]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Avg(Aggr(If(CUSTOMER_IMPACT_MINS &amp;gt; 0, 1 - (CUSTOMER_IMPACT_MINS/MINS_IN_MON)), [PERIOD NAME]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162052#M378732</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-24T05:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162053#M378733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try with any expression, if yes please post that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162053#M378733</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-08-24T05:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162054#M378734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To ignore the PERIOD NAME selection:&lt;/P&gt;&lt;P&gt;=Avg(&lt;STRONG&gt;{&amp;lt;[PERIOD NAME]&amp;gt;}&lt;/STRONG&gt; Aggr(1 - (CUSTOMER_IMPACT_MINS/MINS_IN_MON), [PERIOD NAME]))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt;[PERIOD NAME]&amp;gt;} Aggr(If(CUSTOMER_IMPACT_MINS &amp;gt; 0, 1 - (CUSTOMER_IMPACT_MINS/MINS_IN_MON)), [PERIOD NAME]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162054#M378734</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-24T05:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162055#M378735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not an average. Its merely sum of all the outage mins divided by the sum of total minutes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162055#M378735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-24T05:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162056#M378736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then it would look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - Sum(CUSTOMER_IMPACT_MINS)/Sum(MINS_IN_MON)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;1 - Sum({&amp;lt;[PERIOD NAME]&amp;gt;} CUSTOMER_IMPACT_MINS)/Sum({&amp;lt;[PERIOD NAME]&amp;gt;} MINS_IN_MON)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162056#M378736</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-24T05:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162057#M378737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the values get populated correctly but they change once I select the month filter. I need these to be independent of the filter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162057#M378737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-24T05:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162058#M378738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a few minor changes and this is how it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_IMPACT_MINS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;0,1- (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_IMPACT_MINS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MINS_IN_MON&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-if-statement/m-p/1162058#M378738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-24T05:55:29Z</dc:date>
    </item>
  </channel>
</rss>

