<?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: Define dynamic Measure/Category Names in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/362162#M7269</link>
    <description>Having measures variables created according to time is awkward, it's more like an Excel layout.&lt;BR /&gt;That said, it isn't obvious how to deal with calculations like yours in VA, makes one miss OLAP cubes sometimes....&lt;BR /&gt;I don't have access to VA at this point, but a vague idea.&lt;BR /&gt;First restructure your data so you have a time classification variable instead (like year, if that is your preferred granularity).&lt;BR /&gt;Then you perhaps  could use the ParallelPeriod periodic operator to retrieve last years values.&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#n1lxnqfip132can1hdzuerib7i76.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#n1lxnqfip132can1hdzuerib7i76.htm&lt;/A&gt;</description>
    <pubDate>Sat, 27 May 2017 09:38:18 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-05-27T09:38:18Z</dc:date>
    <item>
      <title>Define dynamic Measure/Category Names</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/361645#M7263</link>
      <description>&lt;P&gt;I have a report that will be published year to year and I'd like to cut down on the maintenance needed. &amp;nbsp;I have a lot of&amp;nbsp;aggregated measures for example. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's some sample code:&lt;/P&gt;&lt;P&gt;Sum [_ByGroup_] ('Ordered&amp;nbsp;2017'n) - Sum [_ByGroup_] ('Ordered 2016'n)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a chart which has the year as a category. &amp;nbsp;So next year the columns will be 'Ordered 2018' and 'Ordered 2017'. &amp;nbsp;Is it possible for me to do something that will dynamically adjust these column names in the code so that they're not hardcoded and will always be the current year and current year-1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/361645#M7263</guid>
      <dc:creator>dakuwan</dc:creator>
      <dc:date>2017-05-25T15:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Define dynamic Measure/Category Names</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/362162#M7269</link>
      <description>Having measures variables created according to time is awkward, it's more like an Excel layout.&lt;BR /&gt;That said, it isn't obvious how to deal with calculations like yours in VA, makes one miss OLAP cubes sometimes....&lt;BR /&gt;I don't have access to VA at this point, but a vague idea.&lt;BR /&gt;First restructure your data so you have a time classification variable instead (like year, if that is your preferred granularity).&lt;BR /&gt;Then you perhaps  could use the ParallelPeriod periodic operator to retrieve last years values.&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#n1lxnqfip132can1hdzuerib7i76.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#n1lxnqfip132can1hdzuerib7i76.htm&lt;/A&gt;</description>
      <pubDate>Sat, 27 May 2017 09:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/362162#M7269</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-27T09:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Define dynamic Measure/Category Names</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/362247#M7270</link>
      <description>&lt;P&gt;SAS VA formulas can only be changed manually so you would be stuck with editing your code each year. Best practice in VA would be to use relative definitions like current year and last year.&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2017 00:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Define-dynamic-Measure-Category-Names/m-p/362247#M7270</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-28T00:35:17Z</dc:date>
    </item>
  </channel>
</rss>

