<?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 expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53797#M606550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an old-fashioned example of Date Island use to create associations through expressions instead of through explicit links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a Date Island table to your data model that consists of a copy of the IN &amp;amp; VALUE columns and rename the columns so that they link to nothing else. Let's say you call those copies DI_IN and DI_VALUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression may now look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;=IF (flag = 1, Sum(IF (DI_IN = nominator, DI_VALUE))/Sum(IF (DI_IN = DENOMINATOR, DI_VALUE)), Sum(VALUE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work on condition that&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the columns in your screenshot are actual internal table fields, and not just data in a QlikView UI object&lt;/LI&gt;&lt;LI&gt;the IN and VALUE columns don't need aggregation/calculations of their own (Otherwise you'll have to precalculate their values in your script)&lt;/LI&gt;&lt;LI&gt;you don't have tens of thousands of Indicators (using IF() in Aggr functions tends to be rather slow)&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2018 11:50:03 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2018-05-04T11:50:03Z</dc:date>
    <item>
      <title>set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53790#M606543</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 table with IN and flag dimensions , So in this expression&amp;nbsp; need to calculated&amp;nbsp; the value :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example IND=10 &lt;/P&gt;&lt;P&gt;flag =1 SO&amp;nbsp; IND= nominator /denominator -&amp;gt; = IND 20 / IND 30 -&amp;gt; = 10/15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201496_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 10:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53790#M606543</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-05-04T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53791#M606544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be&lt;/P&gt;&lt;P&gt;if(flag=1,nominator/denominator,VALUE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 10:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53791#M606544</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-04T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53792#M606545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;nominator and denominator is the ref of inducateur and not the values&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 10:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53792#M606545</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-05-04T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53793#M606546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi souad, maybe with:&lt;/P&gt;&lt;P&gt;Only({&amp;lt;IN={$(=Only({&amp;lt;flag={1}, IN={10}&amp;gt;} nominator))}&amp;gt;} VALUE)&lt;/P&gt;&lt;P&gt;/ &lt;SPAN style="font-size: 13.3333px;"&gt;Only({&amp;lt;IN={$(=Only({&amp;lt;flag={1}, IN={10}&amp;gt;} DENOMINATOR))}&amp;gt;} VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;you can chage the fixed '10' to a variable or $-expansion expression to make it more dynamic&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 10:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53793#M606546</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-05-04T10:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53794#M606547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nominateur is not the value , is the id of indicator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 10:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53794#M606547</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-05-04T10:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53795#M606548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;It a bit confusing..are you saying that if the flag value is set then the next 2 below values of the indicator will become the numerator and denominators?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;cos&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;20 and 30 are below 10&amp;nbsp; and 10 has flag set to 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 11:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53795#M606548</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-04T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53796#M606549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nominator is used to get the IN, and the value of that IN, have you tried? It doesn't returns 10/15?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 11:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53796#M606549</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-05-04T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53797#M606550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an old-fashioned example of Date Island use to create associations through expressions instead of through explicit links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a Date Island table to your data model that consists of a copy of the IN &amp;amp; VALUE columns and rename the columns so that they link to nothing else. Let's say you call those copies DI_IN and DI_VALUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression may now look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;=IF (flag = 1, Sum(IF (DI_IN = nominator, DI_VALUE))/Sum(IF (DI_IN = DENOMINATOR, DI_VALUE)), Sum(VALUE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work on condition that&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the columns in your screenshot are actual internal table fields, and not just data in a QlikView UI object&lt;/LI&gt;&lt;LI&gt;the IN and VALUE columns don't need aggregation/calculations of their own (Otherwise you'll have to precalculate their values in your script)&lt;/LI&gt;&lt;LI&gt;you don't have tens of thousands of Indicators (using IF() in Aggr functions tends to be rather slow)&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 11:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53797#M606550</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-05-04T11:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53798#M606551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way in addition to what has been said could be linking your IN values in the load script to your nominator and denominator fields like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;IN, VALUE, nominator, DENOMINATOR, flag&lt;/P&gt;&lt;P&gt;10, 0, 20, 30, 1&lt;/P&gt;&lt;P&gt;20, 10, 10, 30, 0&lt;/P&gt;&lt;P&gt;30, 15, 10, 20, 0&lt;/P&gt;&lt;P&gt;40, 200, 20, 30, 0&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;IN as nominator,&lt;/P&gt;&lt;P&gt;VALUE as nominatorValue&lt;/P&gt;&lt;P&gt;RESIDENT Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test3:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;IN as DENOMINATOR,&lt;/P&gt;&lt;P&gt;VALUE as DENOMINATORValue&lt;/P&gt;&lt;P&gt;RESIDENT Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use an expression like:&lt;/P&gt;&lt;P&gt;sum(nominatorValue)/sum(DENOMINATORValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 17:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-expression/m-p/53798#M606551</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2018-05-04T17:13:25Z</dc:date>
    </item>
  </channel>
</rss>

