<?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 not working for Only on If condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441201#M97326</link>
    <description>&lt;P&gt;I guess, the condition is matching only to the first attribute. What this is returning as new expression in the same table?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Colour]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 10:01:12 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2024-04-15T10:01:12Z</dc:date>
    <item>
      <title>Set Analysis not working for Only on If condition</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441044#M97312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am looking to get different dimension values based on same ranking. So, I have created an inline view with Dim and Exp by assigning a value to each dim.&lt;/P&gt;
&lt;P&gt;Load * Inline &lt;BR /&gt;[&lt;BR /&gt;dim, exp&lt;BR /&gt;'Style', '1'&lt;BR /&gt;'Colour', '2'&lt;BR /&gt;'Min Range of Month', '3'&lt;BR /&gt;'RRP', '4'&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;And I am looking to bring the corresponding values thru if statement on Straight table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KMD_1-1713153506177.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164060i5A488F8A196E946C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KMD_1-1713153506177.png" alt="KMD_1-1713153506177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below expression is not working as expected,&lt;/P&gt;
&lt;P&gt;if(exp='1',only(if(Aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Style])),&lt;/P&gt;
&lt;P&gt;if(exp='2', only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Colour])),&lt;/P&gt;
&lt;P&gt;if(exp='3', only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Min Range Month])), &lt;BR /&gt;if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, Sum([Sales Amount]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Can you please check my set analysis and advise why it's not working for other values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 04:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441044#M97312</guid>
      <dc:creator>KMD</dc:creator>
      <dc:date>2024-04-15T04:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working for Only on If condition</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441154#M97316</link>
      <description>&lt;P&gt;This case you need reverse way against Dimension not expression, something like this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRIKE&gt;if(exp='1',&lt;/STRIKE&gt; If(dim='Style', ......) // Please remove Only(), not sure the usage for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 08:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441154#M97316</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-04-15T08:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working for Only on If condition</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441180#M97325</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I even tried giving in the following way but still ending up with the same Answer.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KMD_0-1713171596193.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164082iAF37823D6759CB5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KMD_0-1713171596193.png" alt="KMD_0-1713171596193.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;if(dim='Style',only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Style])),&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;if(dim='Colour', only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Colour] )), &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Min Range Month]))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And If I remove only () function it is not showing any values in the table. I believe with this only() I am able to match up the possible value as the calculated dimension.&lt;/P&gt;
&lt;P&gt;Also I observe, the above expression works only when exp=1 or dim='Style', If I give any other value in the if condition as 1st one in the expression, it is showing all nulls instead of printing it beside Colour in dim.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;if(dim='Colour', only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Colour] )))&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KMD_1-1713172612155.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164083i3DEF047C850BAB11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KMD_1-1713172612155.png" alt="KMD_1-1713172612155.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just wondering if there is anything wrong in considering the inline view?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 09:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441180#M97325</guid>
      <dc:creator>KMD</dc:creator>
      <dc:date>2024-04-15T09:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working for Only on If condition</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441201#M97326</link>
      <description>&lt;P&gt;I guess, the condition is matching only to the first attribute. What this is returning as new expression in the same table?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;only(if(aggr(rank(sum(total &amp;lt;[Style Colour]&amp;gt; [Sales Amount]),4),[Style Colour]) = 1, [Colour]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 10:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441201#M97326</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-04-15T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working for Only on If condition</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441442#M97349</link>
      <description>&lt;P&gt;It's bringing up for only first attribute.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KMD_0-1713223519021.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164123i83530EFF78CF2B6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KMD_0-1713223519021.png" alt="KMD_0-1713223519021.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 23:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441442#M97349</guid>
      <dc:creator>KMD</dc:creator>
      <dc:date>2024-04-15T23:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis not working for Only on If condition</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441494#M97351</link>
      <description>&lt;P&gt;please share some data set and application to check in detail.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 05:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-not-working-for-Only-on-If-condition/m-p/2441494#M97351</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-04-16T05:34:18Z</dc:date>
    </item>
  </channel>
</rss>

