<?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: Calculation based on another expression answer in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917260#M75466</link>
    <description>&lt;P&gt;Thank you for your reply......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not good enough in script writing, so please give solution which you gave above by ignoring Unit of Measurement column.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data is loaded as follow(in edit script mode):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grouping:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Group, Category&lt;BR /&gt;Production_Sales qty., Production_Sales qty.&lt;BR /&gt;NSR Part, NSR Part&lt;BR /&gt;Cos, Raw Material&lt;BR /&gt;Cos, Power&lt;BR /&gt;Cos, Material Handling&lt;BR /&gt;Cos, Consumable&lt;BR /&gt;Cos, Salary-Prod.&lt;BR /&gt;Cos, Outsource&lt;BR /&gt;Cos, Rep. &amp;amp; Maint.&lt;BR /&gt;Cos, Increase/Decrease&lt;BR /&gt;Cos, Salary-Marketing&lt;BR /&gt;Cos, Salary-Corporate&lt;BR /&gt;Cos, Marketing OH&lt;BR /&gt;Cos, Corporate OH&lt;BR /&gt;Cos, Advertisement&lt;BR /&gt;EBITDA Rs/T, BIS&lt;BR /&gt;EBITDA Rs/T, Fuel&lt;BR /&gt;EBITDA Rs Cr., Overheads&lt;BR /&gt;&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Main_Data:&lt;BR /&gt;LOAD Month, &lt;BR /&gt;Category, &lt;BR /&gt;[FG/SFG 1],&lt;BR /&gt;[FG/SFG], &lt;BR /&gt;Product, &lt;BR /&gt;Unit, &lt;BR /&gt;Production, &lt;BR /&gt;[Self-Cons.], &lt;BR /&gt;Sale, &lt;BR /&gt;Qty., &lt;BR /&gt;Rate,&lt;BR /&gt;YearName(Month,0,4) as Financial_Year, &lt;BR /&gt;Amt.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[D:\DRIVE G\Ashish JSW\office data old\Cost and Profitability Report\Data Bank\Data for Qlikview upload.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Ashish&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 07:27:43 GMT</pubDate>
    <dc:creator>Learner</dc:creator>
    <dc:date>2022-04-12T07:27:43Z</dc:date>
    <item>
      <title>Calculation based on another expression answer</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1916587#M75447</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am new to Qlikview. I have developed an app. with some complex formulas with my data base and created groups.&lt;/P&gt;
&lt;P&gt;It looks like this:&lt;/P&gt;
&lt;TABLE width="738"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="66"&gt;Unit&lt;/TD&gt;
&lt;TD width="174"&gt;Group&lt;/TD&gt;
&lt;TD width="75"&gt;FG/SFG&lt;/TD&gt;
&lt;TD width="119"&gt;CHD&lt;/TD&gt;
&lt;TD width="119"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="185"&gt;Unit of Measurement&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;DLV&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&lt;TD&gt;&lt;STRONG&gt;&lt;EM&gt;JCL&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&lt;EM&gt;EBITDA Rs Cr.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&lt;EM&gt;10.66&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Rs Cr.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In above unit of measure column is just for reference, which i have created in excel for reference.&lt;/P&gt;
&lt;P&gt;What i want to do is the part which i have marked in Bold &amp;amp; Italic letters. I have calculated figures for CHD (Column Heading) product for all the four Units i.e. DLV, NDL,SLB &amp;amp; VJN. My data base also has the figures with these units. Now i wanted consolidated figures for all the four plant with unit name JCL(marked in bold). The calculation must be based on the figures already calculated for the four different units(the figures are above the bold part). I mean is there a way to calculate the figures based on the figures which are there unit wise. for e.g. JCL - Production_Sales qty. must be 144766 which is sum of all the four unit's(DLV,NDL,SLB,VJN) for Group Production_sales qty.(11327+124073+9366+0) in the same way for NSR parts it must do sumproduct for wieghted average NSR for JCL.&lt;/P&gt;
&lt;P&gt;My 1st task is to create extra 5 lines with JCL in Units column &amp;amp; the five common fields in Group column. 2nd is to calculate the figures based on the figures of units(DLV,NDL,SLB,VJN) as mentioned above.&lt;/P&gt;
&lt;P&gt;Will be grateful for the help............&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ashish&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 08:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1916587#M75447</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2022-04-10T08:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on another expression answer</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1916636#M75450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can use &lt;STRONG&gt;group by&lt;/STRONG&gt; and &lt;STRONG&gt;concatenate&lt;/STRONG&gt; to do your calculations and union them to the bottom of the table. You mentioned that there's different aggregations based on the group. I don't know what the weights are for your averages but if you use this pattern with your data you'll be able to union the aggregations to the bottom of your table.&lt;/P&gt;
&lt;P&gt;Load your table first, then add this underneath.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'JCL' as Unit,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sum(CHD) as CHD,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Unit of Measurement]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;where Group = 'Production_Sales qty.'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;group by Group, [Unit of Measurement] ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Add your next aggregation with relevant "where" condition under this and they will union to your table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 01:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1916636#M75450</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-04-11T01:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on another expression answer</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917260#M75466</link>
      <description>&lt;P&gt;Thank you for your reply......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not good enough in script writing, so please give solution which you gave above by ignoring Unit of Measurement column.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data is loaded as follow(in edit script mode):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grouping:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Group, Category&lt;BR /&gt;Production_Sales qty., Production_Sales qty.&lt;BR /&gt;NSR Part, NSR Part&lt;BR /&gt;Cos, Raw Material&lt;BR /&gt;Cos, Power&lt;BR /&gt;Cos, Material Handling&lt;BR /&gt;Cos, Consumable&lt;BR /&gt;Cos, Salary-Prod.&lt;BR /&gt;Cos, Outsource&lt;BR /&gt;Cos, Rep. &amp;amp; Maint.&lt;BR /&gt;Cos, Increase/Decrease&lt;BR /&gt;Cos, Salary-Marketing&lt;BR /&gt;Cos, Salary-Corporate&lt;BR /&gt;Cos, Marketing OH&lt;BR /&gt;Cos, Corporate OH&lt;BR /&gt;Cos, Advertisement&lt;BR /&gt;EBITDA Rs/T, BIS&lt;BR /&gt;EBITDA Rs/T, Fuel&lt;BR /&gt;EBITDA Rs Cr., Overheads&lt;BR /&gt;&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Main_Data:&lt;BR /&gt;LOAD Month, &lt;BR /&gt;Category, &lt;BR /&gt;[FG/SFG 1],&lt;BR /&gt;[FG/SFG], &lt;BR /&gt;Product, &lt;BR /&gt;Unit, &lt;BR /&gt;Production, &lt;BR /&gt;[Self-Cons.], &lt;BR /&gt;Sale, &lt;BR /&gt;Qty., &lt;BR /&gt;Rate,&lt;BR /&gt;YearName(Month,0,4) as Financial_Year, &lt;BR /&gt;Amt.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[D:\DRIVE G\Ashish JSW\office data old\Cost and Profitability Report\Data Bank\Data for Qlikview upload.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 07:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917260#M75466</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2022-04-12T07:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on another expression answer</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917727#M75492</link>
      <description>&lt;P&gt;Hi Ashish,&lt;/P&gt;
&lt;P&gt;We all started somewhere. Qlik has a very powerful scripting language to transform your data and in your case these extra rows can be created by concatenating the calculated rows to the bottom. So your 1st and 2nd tasks are done at the same time.&lt;/P&gt;
&lt;P&gt;The script provided below performs the sum aggregation over the two groups. (I assumed that&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;EBITDA Rs Cr.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;was summed as well so these can go in the same group). You mentioned that&amp;nbsp;&lt;STRONG&gt;NSR&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Part&lt;/STRONG&gt;&amp;nbsp;is to be aggregated by a weighted average. I'm not sure what your parameters are for this so I've just provided the code for averaging this field.&lt;/P&gt;
&lt;P&gt;There's a thread here on how to perform sumproduct and weighted average in Qlik.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Weighted-Averages-Excel-SUMPRODUCT/td-p/810069" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Weighted-Averages-Excel-SUMPRODUCT/td-p/810069&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'JCL' as Unit,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sum(CHD) as CHD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;where match(Group, 'Production_Sales qty.', '&lt;EM&gt;EBITDA Rs Cr.&lt;/EM&gt;')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;group by Group;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;'JCL' as Unit,&lt;BR /&gt;Group,&lt;BR /&gt;avg(CHD) as CHD&lt;BR /&gt;Resident Data&lt;BR /&gt;where Group = 'NSR Part'&lt;BR /&gt;group by Group;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 23:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917727#M75492</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-04-12T23:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on another expression answer</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917851#M75496</link>
      <description>&lt;P&gt;I tried the above formula it give error as Field 'Group' not found............&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it because i have created Group through inline load statement????&lt;/P&gt;
&lt;P&gt;If it is because of inline load statement., than how i have to refer Group in your Script??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ashish&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 07:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1917851#M75496</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2022-04-13T07:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on another expression answer</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1919571#M75666</link>
      <description>&lt;P&gt;Hi Ashish,&lt;/P&gt;
&lt;P&gt;Judging by the code you provided previously it may be that Group and CHD may be on different tables so these would need to be joined before performing any calculations and summarization. It might help if you posted what your model looks like so we can see if they're in different tables.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 00:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-based-on-another-expression-answer/m-p/1919571#M75666</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-04-19T00:43:48Z</dc:date>
    </item>
  </channel>
</rss>

