<?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: [VA] - tabel, calculations. how to solve in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704407#M14501</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/58203"&gt;@DJongman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the result you want?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 611px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52423i7B657DC3FDB821F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;KPI =&lt;/P&gt;
&lt;PRE&gt;'Sales'n / 'Plan'n&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Weighting =&lt;/P&gt;
&lt;PRE&gt;Avg [_ByGroup_] ('Sales'n) / Sum [_ForAll_] ('Sales'n)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPI Weight =&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;( Avg [_ByGroup_] ('Sales'n) / Sum [_ForAll_] ('Sales'n) ) * Avg
[_ByGroup_] ('KPI'n)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I created&amp;nbsp;&lt;EM&gt;New data from aggregation of...&amp;nbsp;&lt;/EM&gt;by selecting variables: Customer, Plan, Sales, KPI, Weighting, KPI Weight.&lt;/P&gt;
&lt;P&gt;Finally I used this new table in my &lt;STRONG&gt;List table&lt;/STRONG&gt; object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you need more guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 14:24:16 GMT</pubDate>
    <dc:creator>PetriRoine</dc:creator>
    <dc:date>2020-12-08T14:24:16Z</dc:date>
    <item>
      <title>[VA] - tabel, calculations. how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704091#M14498</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling with the next problem, and hoping somebody can give me a little direction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to convert the next Excel sheet (example) to a SAS VA report (ListTable):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DJongman_1-1607332136511.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52397iD28F61EC2FA3A098/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJongman_1-1607332136511.png" alt="DJongman_1-1607332136511.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next calculations are being done in Excel:&lt;/P&gt;
&lt;P&gt;KPI = Sales/Plan&amp;nbsp; (for example: =+C3/B3)&lt;/P&gt;
&lt;P&gt;Weighting = Sales cell / Total of Sales (for example:&amp;nbsp;=+C3/$C$9)&lt;/P&gt;
&lt;P&gt;KPI Weighting = KPI cell * Weighting cell&amp;nbsp; (for example:&amp;nbsp;=+D3*E3)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Total is sum of row, except the column KPI. This is average:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In VA, Imported the data and created a list table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DJongman_2-1607332419947.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52398iDB328DA19F6E1BE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJongman_2-1607332419947.png" alt="DJongman_2-1607332419947.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All is working correctly:&lt;/P&gt;
&lt;P&gt;Sum of sales is correct.&lt;/P&gt;
&lt;P&gt;KPI avg is correct (gemiddelde = 81%)&lt;/P&gt;
&lt;P&gt;Total of Weighting is correct. This should always be 1, if an customer filter is added for example, and a selection is made. (works fine)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, the KPI weight is on cell level correct. But the total is incorrect. This should be 84% and not 406%&lt;/P&gt;
&lt;P&gt;I know that he is doing in the background a calculation of a total of KPI * weighting = 406% * 1 = 406%.&lt;/P&gt;
&lt;P&gt;But how can I change this? So the total of the column KPI Weight is not 406, but 84%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried several calculations (Table an Aggregated table options), but I am stuck on this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that someone can help me out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniël&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>Mon, 07 Dec 2020 09:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704091#M14498</guid>
      <dc:creator>DJongman</dc:creator>
      <dc:date>2020-12-07T09:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: [VA] - tabel, calculations. how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704407#M14501</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/58203"&gt;@DJongman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the result you want?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 611px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52423i7B657DC3FDB821F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;KPI =&lt;/P&gt;
&lt;PRE&gt;'Sales'n / 'Plan'n&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Weighting =&lt;/P&gt;
&lt;PRE&gt;Avg [_ByGroup_] ('Sales'n) / Sum [_ForAll_] ('Sales'n)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPI Weight =&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;( Avg [_ByGroup_] ('Sales'n) / Sum [_ForAll_] ('Sales'n) ) * Avg
[_ByGroup_] ('KPI'n)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I created&amp;nbsp;&lt;EM&gt;New data from aggregation of...&amp;nbsp;&lt;/EM&gt;by selecting variables: Customer, Plan, Sales, KPI, Weighting, KPI Weight.&lt;/P&gt;
&lt;P&gt;Finally I used this new table in my &lt;STRONG&gt;List table&lt;/STRONG&gt; object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you need more guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704407#M14501</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-12-08T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: [VA] - tabel, calculations. how to solve</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704633#M14502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Petri,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First thanks for thinking along.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The outcome you sketch is correct.&amp;nbsp;However, what I'm running into this:&lt;/P&gt;
&lt;P&gt;If you link a list-filter to the table and select for example 5 customers. In that case, the weighting is not correct (should always be 1) and therefore the KPI weight is not correct either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's the problem for me. I get everything done, but not completely in 1 table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, whether all values are good, with the exception of the total of KPI weight, or KPI weight is good and all other values are incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniël&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 06:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-tabel-calculations-how-to-solve/m-p/704633#M14502</guid>
      <dc:creator>DJongman</dc:creator>
      <dc:date>2020-12-09T06:29:32Z</dc:date>
    </item>
  </channel>
</rss>

