<?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: Help Needed on MTD Aggregate Measure in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190460#M1392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;At first it should be a Calculated item and not an aggregated measure.&amp;nbsp; (Was late yesterday...haha)&lt;/P&gt;&lt;P&gt;First the formula:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Formula1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6111_Formula1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;So if the "day of the month" of the transaction Date is less than the "day of the month" of today (the 24th "now") then the weight is transfered to the variable kg_form, if not the kg_form gets 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the result.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Formula2.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6112_Formula2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;As you can see in this cross table, all data reporting stops at the 24th day of the month.&lt;/P&gt;&lt;P&gt;This should work for you in this case.&lt;/P&gt;&lt;P&gt;Ones you are used to these kind of calculated items, there are a lot of possibilities.&lt;/P&gt;&lt;P&gt;Greetings and good luck.&amp;nbsp; Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 04:53:45 GMT</pubDate>
    <dc:creator>PeterWijers</dc:creator>
    <dc:date>2014-04-24T04:53:45Z</dc:date>
    <item>
      <title>Help Needed on MTD Aggregate Measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190457#M1389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some urgent help on an aggregate measure. I have an MTD report that shows data like 1st to 22nd April, 1st to 22nd March, 1st to 22nd Feb, 1st to 22nd Jan and likewise. It is an MTD like-for-like period monthly comparison report. In my company we upload data daily for the previous day. Please see the attached screenshot. In this aggregated measure, I want to know how instead of manually changing the date every day, I can set the date formula so that it automatically considers yesterday's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - There is another option in the field and that is TODAY however if I choose this option, figures will not appear correctly as for April (assuming I run the report today 23rd April) it will show data from 1st to 22nd April (as mentioned above we have data till yesterday 22nd april in our servers) but for Mar and preceding months, it will show from 1st to 23rd instead of 1st to 22nd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please...any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6077_Screen.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 07:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190457#M1389</guid>
      <dc:creator>mjaitly</dc:creator>
      <dc:date>2014-04-23T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on MTD Aggregate Measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190458#M1390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish.&lt;/P&gt;&lt;P&gt;i Would suggest a different approach.&lt;/P&gt;&lt;P&gt;create a new aggregated calculated field where you filter on the day number of the month less than the day number of today.&lt;/P&gt;&lt;P&gt;While using the months in the report, it should show the results of each month less than the daynumber of today.&lt;/P&gt;&lt;P&gt;if you might need more help, i could set-up a formula sample for you.&lt;/P&gt;&lt;P&gt;greetings Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190458#M1390</guid>
      <dc:creator>PeterWijers</dc:creator>
      <dc:date>2014-04-23T18:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on MTD Aggregate Measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190459#M1391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It will be great if you show me a sample formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 02:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190459#M1391</guid>
      <dc:creator>mjaitly</dc:creator>
      <dc:date>2014-04-24T02:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on MTD Aggregate Measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190460#M1392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;At first it should be a Calculated item and not an aggregated measure.&amp;nbsp; (Was late yesterday...haha)&lt;/P&gt;&lt;P&gt;First the formula:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Formula1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6111_Formula1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;So if the "day of the month" of the transaction Date is less than the "day of the month" of today (the 24th "now") then the weight is transfered to the variable kg_form, if not the kg_form gets 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the result.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Formula2.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6112_Formula2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;As you can see in this cross table, all data reporting stops at the 24th day of the month.&lt;/P&gt;&lt;P&gt;This should work for you in this case.&lt;/P&gt;&lt;P&gt;Ones you are used to these kind of calculated items, there are a lot of possibilities.&lt;/P&gt;&lt;P&gt;Greetings and good luck.&amp;nbsp; Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 04:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190460#M1392</guid>
      <dc:creator>PeterWijers</dc:creator>
      <dc:date>2014-04-24T04:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on MTD Aggregate Measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190461#M1393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Peter! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 05:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Help-Needed-on-MTD-Aggregate-Measure/m-p/190461#M1393</guid>
      <dc:creator>mjaitly</dc:creator>
      <dc:date>2014-04-24T05:42:43Z</dc:date>
    </item>
  </channel>
</rss>

