<?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: Percent of YTD (urgent, please help) in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282656#M4758</link>
    <description>&lt;P&gt;Hai Hargan,&lt;/P&gt;&lt;P&gt;It works for calculated items, but not for aggregate measures. If you create Year to date column for Profit, you cannot create % of Year to date. That's why my formula.&lt;BR /&gt;And yes, I have made % of the column calculate as&lt;BR /&gt;IF ( ( 'SALES_DATE'n &amp;lt;= DateFromMDY( Month(DatePart(Now())), DayOfMonth(DatePart(Now())), Year('SALES_DATE'n))) )&lt;BR /&gt;RETURN 'FT_GROSS_AMOUNT'n&lt;BR /&gt;ELSE 0&lt;BR /&gt;But as you can see from the image attached the result is strange (the total line is 38% instead of 100%). The problem is that VA consider the total equal to Sum [_ForAll_] ('FT_GROSS_AMOUNT'n) instead of Sum [_ForAll_] (IF ( ( 'SALES_DATE'n &amp;lt;= DateFromMDY( Month(DatePart(Now())), DayOfMonth(DatePart(Now())), Year('SALES_DATE'n))) )&lt;BR /&gt;RETURN 'FT_GROSS_AMOUNT'n&lt;BR /&gt;ELSE 0) so % form total is strange, is buged...&lt;BR /&gt;Any idea?&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adelaida&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 11:24:08 GMT</pubDate>
    <dc:creator>Adelaida</dc:creator>
    <dc:date>2016-07-07T11:24:08Z</dc:date>
    <item>
      <title>Percent of total YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282635#M4755</link>
      <description>&lt;P&gt;Hi to all,&lt;BR /&gt;&lt;BR /&gt;I need to put in a report the YTD sales and % of total of dimensions for YTD.&lt;BR /&gt;I know that it is not possible to create aggregation of an aggregated measure so I made YTD with the formula below:&lt;BR /&gt;&lt;BR /&gt;IF ( ( 'SALES_DATE'n &amp;lt;= DateFromMDY( Month(DatePart(Now())), DayOfMonth(DatePart(Now())), Year('SALES_DATE'n))) )&lt;BR /&gt;RETURN 'FT_GROSS_AMOUNT'n&lt;BR /&gt;ELSE 0&lt;BR /&gt;&lt;BR /&gt;If I put the formula below in an pivot without dimensions the overall sum is OK.&lt;BR /&gt;If I put the Sum [_ForAll_] ('Ytd Gross Act'n) for the current year is OK, for all the other is much more than the total of YTD for the year. And if I create % of total for Ytd column it sums to 38% instead of 100%.&lt;BR /&gt;Is that a bug?&lt;BR /&gt;How can I fix it?&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Adelaida&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS I discover what&amp;nbsp;&lt;SPAN&gt;Sum [_ForAll_] ('Ytd Gross Act'n) gives as result , it gives&amp;nbsp;the same as&amp;nbsp;Sum [_ForAll_] ('FT_GROSS_AMOUNT'n). But why? It works fine if I make a condition on product dimension or other. Is it something wrong in my formula below?&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12726i56B717A4A4A837EE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="% of total for YTD.png" title="% of total for YTD.png" /&gt;</description>
      <pubDate>Thu, 07 Jul 2016 12:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282635#M4755</guid>
      <dc:creator>Adelaida</dc:creator>
      <dc:date>2016-07-07T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282649#M4757</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;In simpler words,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wants to find %of any column, then you can write click on column name (measure) and then click on "Create" and then click on "Percentage of Total".&lt;BR /&gt;&lt;BR /&gt;Let's say column name is PROFIT.&lt;/P&gt;&lt;P&gt;so, you can make a new aggregated column as a Percenatge Total of PROFIT.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12727iC468C260F2F3CBA3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Untitled.png" title="Untitled.png" /&gt;</description>
      <pubDate>Thu, 07 Jul 2016 10:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282649#M4757</guid>
      <dc:creator>hargan</dc:creator>
      <dc:date>2016-07-07T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282656#M4758</link>
      <description>&lt;P&gt;Hai Hargan,&lt;/P&gt;&lt;P&gt;It works for calculated items, but not for aggregate measures. If you create Year to date column for Profit, you cannot create % of Year to date. That's why my formula.&lt;BR /&gt;And yes, I have made % of the column calculate as&lt;BR /&gt;IF ( ( 'SALES_DATE'n &amp;lt;= DateFromMDY( Month(DatePart(Now())), DayOfMonth(DatePart(Now())), Year('SALES_DATE'n))) )&lt;BR /&gt;RETURN 'FT_GROSS_AMOUNT'n&lt;BR /&gt;ELSE 0&lt;BR /&gt;But as you can see from the image attached the result is strange (the total line is 38% instead of 100%). The problem is that VA consider the total equal to Sum [_ForAll_] ('FT_GROSS_AMOUNT'n) instead of Sum [_ForAll_] (IF ( ( 'SALES_DATE'n &amp;lt;= DateFromMDY( Month(DatePart(Now())), DayOfMonth(DatePart(Now())), Year('SALES_DATE'n))) )&lt;BR /&gt;RETURN 'FT_GROSS_AMOUNT'n&lt;BR /&gt;ELSE 0) so % form total is strange, is buged...&lt;BR /&gt;Any idea?&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adelaida&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 11:24:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282656#M4758</guid>
      <dc:creator>Adelaida</dc:creator>
      <dc:date>2016-07-07T11:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282906#M4766</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Can you please share your dataset and objective of your task if it's not confidential ?&lt;BR /&gt;In any case you can mail me i.e (hargan.gandhi@gmail.com)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 11:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/282906#M4766</guid>
      <dc:creator>hargan</dc:creator>
      <dc:date>2016-07-08T11:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/284772#M4814</link>
      <description>&lt;P&gt;Just some thoughts here: What goes wrong when using the supplied functionality for calculating YTD aggregated measure? You can do some calculations on aggregated measures like&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum [_ByGroup_]&lt;/SPAN&gt; aggregated measure / &lt;SPAN&gt;Sum [_ForAll_]&lt;/SPAN&gt; aggregated measure&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 08:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/284772#M4814</guid>
      <dc:creator>Frank_Boekamp</dc:creator>
      <dc:date>2016-07-15T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/284773#M4815</link>
      <description>Hi Hargan, I have solved it temporary using your hit. I hope they won't need a graphic of the YTD % of total, because there I must use Sum [_ByGroup_] Ytd / Sum [_ForAll_] Ytd and it's bugged. Till then I consider the problem solved. Thank you, Adelaida</description>
      <pubDate>Fri, 15 Jul 2016 08:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/284773#M4815</guid>
      <dc:creator>Adelaida</dc:creator>
      <dc:date>2016-07-15T08:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total YTD (urgent, please help)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/284776#M4816</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;If you need let me know, will find any solution for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 08:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percent-of-total-YTD-urgent-please-help/m-p/284776#M4816</guid>
      <dc:creator>hargan</dc:creator>
      <dc:date>2016-07-15T08:52:39Z</dc:date>
    </item>
  </channel>
</rss>

