<?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: How to use Set analysis syntax in backend in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-Set-analysis-syntax-in-backend/m-p/1923834#M76042</link>
    <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;If all are comes under same table, then try like below.&lt;/P&gt;
&lt;P&gt;Hope, its line item level.. I.e. all line items has cost1 and quantity level info..&amp;nbsp; if not, then u need to use sum() in the back end also. its depends on ur data.&lt;/P&gt;
&lt;P&gt;Load *,&lt;/P&gt;
&lt;P&gt;if([Prod. Hr. Level 2]='Aircooled Screw Local Factory',(Cost1/Quantity1)*0.86,&lt;/P&gt;
&lt;P&gt;if([Prod. Hr. Level 2]='Watercooled Screw Local Factory',(Cost1/Quantity1)*0.90 ,&lt;/P&gt;
&lt;P&gt;(Cost1/Quantity1))) from urdatasource;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its from different tables, then need to change the data model to bring all in one table with primary key.&lt;/P&gt;
&lt;P&gt;So that, you can follow above steps.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 09:46:23 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2022-04-28T09:46:23Z</dc:date>
    <item>
      <title>How to use Set analysis syntax in backend</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-Set-analysis-syntax-in-backend/m-p/1923788#M76037</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an set expression&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;if([Prod. Hr. Level 2]='Aircooled Screw Local Factory',(sum(Cost1)/Sum (Quantity1))*0.86,&lt;/P&gt;
&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;if([Prod. Hr. Level 2]='Watercooled Screw Local Factory',(sum(Cost1)/Sum (Quantity1))*0.90 ,&lt;/P&gt;
&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;(sum(Cost1)/Sum (Quantity1)))) which I used in front end&amp;nbsp; but my requirement is same set expression I need to use in backend with column name as perunitcost1.&lt;/P&gt;
&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;Is this possible,if yes then help me out in this.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-Set-analysis-syntax-in-backend/m-p/1923788#M76037</guid>
      <dc:creator>Chandu</dc:creator>
      <dc:date>2022-04-28T08:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Set analysis syntax in backend</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-Set-analysis-syntax-in-backend/m-p/1923834#M76042</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;If all are comes under same table, then try like below.&lt;/P&gt;
&lt;P&gt;Hope, its line item level.. I.e. all line items has cost1 and quantity level info..&amp;nbsp; if not, then u need to use sum() in the back end also. its depends on ur data.&lt;/P&gt;
&lt;P&gt;Load *,&lt;/P&gt;
&lt;P&gt;if([Prod. Hr. Level 2]='Aircooled Screw Local Factory',(Cost1/Quantity1)*0.86,&lt;/P&gt;
&lt;P&gt;if([Prod. Hr. Level 2]='Watercooled Screw Local Factory',(Cost1/Quantity1)*0.90 ,&lt;/P&gt;
&lt;P&gt;(Cost1/Quantity1))) from urdatasource;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its from different tables, then need to change the data model to bring all in one table with primary key.&lt;/P&gt;
&lt;P&gt;So that, you can follow above steps.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 09:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-Set-analysis-syntax-in-backend/m-p/1923834#M76042</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-04-28T09:46:23Z</dc:date>
    </item>
  </channel>
</rss>

