<?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 sum value for specific dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1759266#M453947</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologize, maybe the way I explained is not clear. Actually, I pull the data from SAP database and created a data model in SAP Hana. Then, I do a connection to connect my data model in my QV. All the fields (dimensions) that I used is from SAP and calculation for &lt;STRONG&gt;variance1 &lt;/STRONG&gt;field has been done in my data model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my dashboard,&amp;nbsp;I've created a bar chart to display total sum of monthly variance&amp;nbsp; but the variance figure is not same as my SAP report. After checking with my SAP report, I found that the variance for each row should be link to &lt;STRONG&gt;green highlighted color dimensions&lt;/STRONG&gt; to get the correct total sum of variance &lt;STRONG&gt;(yellow highlighted color).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example data for Jan:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sample.PNG" style="width: 738px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43699i098B1A2DD781E996/image-dimensions/738x434?v=v2" width="738" height="434" role="button" title="sample.PNG" alt="sample.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can calculate total sum of variance based on dimensions? Because when I used the expression &lt;SPAN&gt;=Sum({$&amp;lt;Year{"$(=Max(Year))"}&amp;gt;}Variance1/1000)+Sum({1}0)&amp;nbsp;&lt;/SPAN&gt;, the total sum of variance was calculated not based on dimensions but it's only sum the Variance1 field.&lt;/P&gt;&lt;P&gt;Need your advice on this. I'm so sorry, I do not know the right way to explain it. Hope you will understand what I have explained it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 10:53:39 GMT</pubDate>
    <dc:creator>Lily</dc:creator>
    <dc:date>2020-11-06T10:53:39Z</dc:date>
    <item>
      <title>How to sum value for specific dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1758726#M453902</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get total sum of variance and show it as bar chart based on specific dimension values as below:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;PO number&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Line item&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Material Doc&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Material No.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Material Line Item&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Good Receipt value&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I even tried to calculate the&amp;nbsp;total of variance in my bar chart using expression:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Sum({$&amp;lt;Year{"$(=Max(Year))"}&amp;gt;}Variance1/1000)+Sum({1}0)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However,&lt;SPAN&gt;&amp;nbsp;the variance in bar chart is not exactly same as my other report.&amp;nbsp; When I checked my report, to get the variance it should be filter based on dimension as per I mentioned above.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If anyone has any ideas I would very much appreciate your help! Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1758726#M453902</guid>
      <dc:creator>Lily</dc:creator>
      <dc:date>2023-06-07T08:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum value for specific dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1758936#M453916</link>
      <description>&lt;P&gt;pls supply more info so someone can help you.&amp;nbsp; where does the Variance1 field come from?&amp;nbsp; add sample data and what fields to compute variance from. and what the business rules are&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 13:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1758936#M453916</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-11-05T13:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum value for specific dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1759266#M453947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologize, maybe the way I explained is not clear. Actually, I pull the data from SAP database and created a data model in SAP Hana. Then, I do a connection to connect my data model in my QV. All the fields (dimensions) that I used is from SAP and calculation for &lt;STRONG&gt;variance1 &lt;/STRONG&gt;field has been done in my data model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my dashboard,&amp;nbsp;I've created a bar chart to display total sum of monthly variance&amp;nbsp; but the variance figure is not same as my SAP report. After checking with my SAP report, I found that the variance for each row should be link to &lt;STRONG&gt;green highlighted color dimensions&lt;/STRONG&gt; to get the correct total sum of variance &lt;STRONG&gt;(yellow highlighted color).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example data for Jan:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sample.PNG" style="width: 738px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43699i098B1A2DD781E996/image-dimensions/738x434?v=v2" width="738" height="434" role="button" title="sample.PNG" alt="sample.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can calculate total sum of variance based on dimensions? Because when I used the expression &lt;SPAN&gt;=Sum({$&amp;lt;Year{"$(=Max(Year))"}&amp;gt;}Variance1/1000)+Sum({1}0)&amp;nbsp;&lt;/SPAN&gt;, the total sum of variance was calculated not based on dimensions but it's only sum the Variance1 field.&lt;/P&gt;&lt;P&gt;Need your advice on this. I'm so sorry, I do not know the right way to explain it. Hope you will understand what I have explained it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1759266#M453947</guid>
      <dc:creator>Lily</dc:creator>
      <dc:date>2020-11-06T10:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum value for specific dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1759304#M453950</link>
      <description>&lt;P&gt;if i understand it correctly, Variance1&amp;nbsp; = Standard Price - Good Receipt Value * Price Unit&lt;/P&gt;&lt;P&gt;to understand where the issue is coming from, are you able to create the straight table with the fields in your example?&amp;nbsp; is the field Good Receipt Value computed in your DM?&amp;nbsp; are you able to get the correct Variance1 value per row?&amp;nbsp; is your issue calculating Variace1? or are you getting it correctly but your SUM expression is not giving you the rt value?&amp;nbsp; this will tell you if your issue is in your script or in your chart expression&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 12:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-value-for-specific-dimension/m-p/1759304#M453950</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-11-06T12:34:05Z</dc:date>
    </item>
  </channel>
</rss>

