<?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: Time Dimension and OLAp Cube Studio in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17488#M234</link>
    <description>&amp;gt; Shri,&lt;BR /&gt;
&amp;gt; The reason this is occuring is the mix of format&lt;BR /&gt;
&amp;gt; types. In the source data, you have a datetime value,&lt;BR /&gt;
&amp;gt; but in the year/month/day values you reference date&lt;BR /&gt;
&amp;gt; formats.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; If you mix the two in base SAS you also get ***&lt;BR /&gt;
&amp;gt; values.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; You can either utilize a new date variable in your&lt;BR /&gt;
&amp;gt; source table&lt;BR /&gt;
&amp;gt;  -&amp;gt; which could be newdate=datepart(calendar_date); &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; or you could change the year/month/day values to use&lt;BR /&gt;
&amp;gt; other datetime formats.&lt;BR /&gt;
&amp;gt; Such as dtmonyy. for Month and dtyear. for Year.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Reference Material on all the Date Formats Can be&lt;BR /&gt;
&amp;gt; Found at:&lt;BR /&gt;
&amp;gt; &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/626" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/626&lt;/A&gt;&lt;BR /&gt;
&amp;gt; 18/HTML/default/a001263753.htm&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ~ Angela&lt;BR /&gt;
&amp;gt; &lt;A href="http://sas-bi.blogspot.com" target="_blank"&gt;http://sas-bi.blogspot.com&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Angela,&lt;BR /&gt;
&lt;BR /&gt;
       Thank you for your message. Here are a couple of things, &lt;BR /&gt;
    In the levels, I did not enter the format, those formats were listed by default and I was trying to go with the default and it did not work.&lt;BR /&gt;
&lt;BR /&gt;
I did realize that it is a datetime variable and I did create another variable in my dataset just like you said with just the datepart, but I do not see that variable in the drop down while creating the levels. It looks like a bug to me.&lt;BR /&gt;
&lt;BR /&gt;
I'll try and change the format like you said and will let you know if it works&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Shri</description>
    <pubDate>Fri, 07 May 2010 12:10:51 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-05-07T12:10:51Z</dc:date>
    <item>
      <title>Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17486#M232</link>
      <description>Hello All,&lt;BR /&gt;
     I feel stumped with this issue. I have a Date variable called Calendar_date with the format datetime20. I am trying to create a Level for a Time Dimension using the OLAP Cube Studio 4.2. I can only see the Calendar_date in the drop down list, Even though I have another variable called sas_incident_date with format date8. If I choose Calendar_Date and complete building the Cube, and try to view the cube data, For the time dimension, I see **** instead of the actual level (Year/Month/Day). I have not been able to figure out what I am doing wrong can some one help.  Here is the code for the time dimension&lt;BR /&gt;
&lt;BR /&gt;
DIMENSION Incident_Date&lt;BR /&gt;
      CAPTION          = 'Incident_Date'&lt;BR /&gt;
      TYPE             = TIME&lt;BR /&gt;
      SORT_ORDER       = ASCENDING&lt;BR /&gt;
      HIERARCHIES      = (&lt;BR /&gt;
         Incident_Date &lt;BR /&gt;
         ) /* HIERARCHIES */;&lt;BR /&gt;
&lt;BR /&gt;
      HIERARCHY Incident_Date &lt;BR /&gt;
         ALL_MEMBER = 'All Incident_Date'&lt;BR /&gt;
         CAPTION    = 'Incident_Date'&lt;BR /&gt;
         LEVELS     = (&lt;BR /&gt;
            Year Month Day &lt;BR /&gt;
            ) /* LEVELS */&lt;BR /&gt;
         DEFAULT;&lt;BR /&gt;
&lt;BR /&gt;
      LEVEL Year&lt;BR /&gt;
         COLUMN         =  CALENDAR_DATE&lt;BR /&gt;
         FORMAT         =  YEAR4.&lt;BR /&gt;
         TYPE           =  YEAR&lt;BR /&gt;
         CAPTION        =  'Year'&lt;BR /&gt;
         SORT_ORDER     =  ASCENDING;&lt;BR /&gt;
&lt;BR /&gt;
      LEVEL Month&lt;BR /&gt;
         COLUMN         =  CALENDAR_DATE&lt;BR /&gt;
         FORMAT         =  MONNAME9.&lt;BR /&gt;
         TYPE           =  MONTHS&lt;BR /&gt;
         CAPTION        =  'Month'&lt;BR /&gt;
         SORT_ORDER     =  ASCENDING;&lt;BR /&gt;
&lt;BR /&gt;
      LEVEL Day&lt;BR /&gt;
         COLUMN         =  CALENDAR_DATE&lt;BR /&gt;
         FORMAT         =  DOWNAME9.&lt;BR /&gt;
         TYPE           =  DAYS&lt;BR /&gt;
         CAPTION        =  'Day'&lt;BR /&gt;
         SORT_ORDER     =  ASCENDING;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all your suggestions. &lt;BR /&gt;
&lt;BR /&gt;
Shri</description>
      <pubDate>Thu, 06 May 2010 20:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17486#M232</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-06T20:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17487#M233</link>
      <description>Shri,&lt;BR /&gt;
The reason this is occuring is the mix of format types. In the source data, you have a datetime value, but in the year/month/day values you reference date formats.&lt;BR /&gt;
&lt;BR /&gt;
If you mix the two in base SAS you also get *** values.&lt;BR /&gt;
&lt;BR /&gt;
You can either utilize a new date variable in your source table&lt;BR /&gt;
 -&amp;gt; which could be newdate=datepart(calendar_date); &lt;BR /&gt;
&lt;BR /&gt;
or you could change the year/month/day values to use other datetime formats.&lt;BR /&gt;
Such as dtmonyy. for Month and dtyear. for Year.&lt;BR /&gt;
&lt;BR /&gt;
Reference Material on all the Date Formats Can be Found at:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001263753.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001263753.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
~ Angela&lt;BR /&gt;
&lt;A href="http://sas-bi.blogspot.com" target="_blank"&gt;http://sas-bi.blogspot.com&lt;/A&gt;</description>
      <pubDate>Thu, 06 May 2010 20:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17487#M233</guid>
      <dc:creator>AngelaHall</dc:creator>
      <dc:date>2010-05-06T20:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17488#M234</link>
      <description>&amp;gt; Shri,&lt;BR /&gt;
&amp;gt; The reason this is occuring is the mix of format&lt;BR /&gt;
&amp;gt; types. In the source data, you have a datetime value,&lt;BR /&gt;
&amp;gt; but in the year/month/day values you reference date&lt;BR /&gt;
&amp;gt; formats.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; If you mix the two in base SAS you also get ***&lt;BR /&gt;
&amp;gt; values.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; You can either utilize a new date variable in your&lt;BR /&gt;
&amp;gt; source table&lt;BR /&gt;
&amp;gt;  -&amp;gt; which could be newdate=datepart(calendar_date); &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; or you could change the year/month/day values to use&lt;BR /&gt;
&amp;gt; other datetime formats.&lt;BR /&gt;
&amp;gt; Such as dtmonyy. for Month and dtyear. for Year.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Reference Material on all the Date Formats Can be&lt;BR /&gt;
&amp;gt; Found at:&lt;BR /&gt;
&amp;gt; &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/626" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/626&lt;/A&gt;&lt;BR /&gt;
&amp;gt; 18/HTML/default/a001263753.htm&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ~ Angela&lt;BR /&gt;
&amp;gt; &lt;A href="http://sas-bi.blogspot.com" target="_blank"&gt;http://sas-bi.blogspot.com&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Angela,&lt;BR /&gt;
&lt;BR /&gt;
       Thank you for your message. Here are a couple of things, &lt;BR /&gt;
    In the levels, I did not enter the format, those formats were listed by default and I was trying to go with the default and it did not work.&lt;BR /&gt;
&lt;BR /&gt;
I did realize that it is a datetime variable and I did create another variable in my dataset just like you said with just the datepart, but I do not see that variable in the drop down while creating the levels. It looks like a bug to me.&lt;BR /&gt;
&lt;BR /&gt;
I'll try and change the format like you said and will let you know if it works&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Shri</description>
      <pubDate>Fri, 07 May 2010 12:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17488#M234</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-07T12:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17489#M235</link>
      <description>Shri,&lt;BR /&gt;
Just to verify ~ when you created the new variable with datepart() did you register that column in the metadata or update the metadata for the entire table?&lt;BR /&gt;
&lt;BR /&gt;
In the Dimension Designer screen - there are formats in the dropdown list - but you can also manually type the format you would like to use for each level.&lt;BR /&gt;
&lt;BR /&gt;
~ Angela Hall&lt;BR /&gt;
&lt;A href="http://sas-bi.blogspot.com" target="_blank"&gt;http://sas-bi.blogspot.com&lt;/A&gt;</description>
      <pubDate>Fri, 07 May 2010 12:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17489#M235</guid>
      <dc:creator>AngelaHall</dc:creator>
      <dc:date>2010-05-07T12:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17490#M236</link>
      <description>Angela,&lt;BR /&gt;
      You are a genius, I had not updated the meta data for the column after I updated the table, that's why it was not showing up. Once I updated the metadata the field is showing up.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Shri</description>
      <pubDate>Fri, 07 May 2010 13:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17490#M236</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-07T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17491#M237</link>
      <description>Angela,&lt;BR /&gt;
       I have one more question on the Time Dimension. When I use the level provided by SAS, the time is broken down to Year/Quarter/Month (this is the combination I used) depending on the calendar year (jan1 - Dec 31). Is there a way to customize the year(our year is Aug 25 to June 10 - School year) and our quarters are different too. I have built a cube on attendance and I know the first thing that will be asked is if they can see the data by month/quarters/years but in terms of the school calendar not the regular calendar. Can you suggest any way of doing this. I have built a data set which gives me the start date and end date for the quarter and the month but I don't know how to use that to define the criteria for the level.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Shri</description>
      <pubDate>Tue, 11 May 2010 16:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17491#M237</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-11T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension and OLAp Cube Studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17492#M238</link>
      <description>Hi Shri,&lt;BR /&gt;
As mentioned within the OLAP doc(http://support.sas.com/documentation/cdl/en/olapug/59574/HTML/default/a002254427.htm) you can have two Time Hierarchies - one for 'Fiscal' and one for 'Calendar'. 'Fiscal' for business is the same terminology as 'School' for your scenario. I would suggest having two data elements each, a school year and calendar year, a school month &amp;amp; calendar month, a school quarter and calendar quarter.&lt;BR /&gt;
&lt;BR /&gt;
You could set these 6 columns up in a separate table and join only at OLAP run time, or simply add them into the base source table for the OLAP Cube.&lt;BR /&gt;
&lt;BR /&gt;
~ Angela Hall&lt;BR /&gt;
&lt;A href="http://sas-bi.blogspot.com" target="_blank"&gt;http://sas-bi.blogspot.com&lt;/A&gt;</description>
      <pubDate>Tue, 11 May 2010 17:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Time-Dimension-and-OLAp-Cube-Studio/m-p/17492#M238</guid>
      <dc:creator>AngelaHall</dc:creator>
      <dc:date>2010-05-11T17:01:40Z</dc:date>
    </item>
  </channel>
</rss>

