<?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>Question Re: Date not grouped in story with Datasphere model in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13752552#M4835791</link>
    <description>Thanks for the answer. I have managed to create the SAP DS Time and Date dimension, but what I can't get my model to take the hierarchy to SAC. I have a table where I have included the association by the ERDAT field. I also made the association in the SQL View using the association field and also joining it in the SQL query. But none of this is working for me to get the hierarchy to appear in SAC. would you know what step I am missing? Thank you very much!</description>
    <pubDate>Fri, 05 Jul 2024 09:21:46 GMT</pubDate>
    <dc:creator>jlopezm</dc:creator>
    <dc:date>2024-07-05T09:21:46Z</dc:date>
    <item>
      <title>Date not grouped in story with Datasphere model</title>
      <link>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaq-p/13750255</link>
      <description>&lt;P&gt;Hello SAP Analytics Cloud and SAP Datasphere experts.&lt;/P&gt;&lt;P&gt;I have made an analytics model following this flow:&lt;/P&gt;&lt;P&gt;Replication Flow &amp;gt; Table &amp;gt; SQL View &amp;gt; Analytic Model&lt;/P&gt;&lt;P&gt;Within that process, I have a table that stores a field (ERDAT) as String since that is how I get it from the SAP table. In the SQL View I transform it into a date with the to_date() function. And this is done correctly, however, when I go to view it in the SAP Analytics Cloud history and I want to, for example, set a filter, they do not appear grouped as when I create the model directly in SAP Analytics Cloud:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_1-1720012952741.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/131919iE48EBC4E6CC2D135/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_1-1720012952741.png" alt="jlopezm_1-1720012952741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but by individual dates:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_0-1720012905589.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/131918i22A87A74DE350FE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_0-1720012905589.png" alt="jlopezm_0-1720012905589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know how I can change this setting in SAP Datasphere. Or if it is something to change in SAP Analytics Cloud.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 13:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaq-p/13750255</guid>
      <dc:creator>jlopezm</dc:creator>
      <dc:date>2024-07-03T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date not grouped in story with Datasphere model</title>
      <link>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13750886#M4835574</link>
      <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/154226"&gt;@jlopezm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think just converting the string to date will not create the necessary hierarchies. I think you would need to create the SAP DS Time and Date dimension.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/t5/technology-blogs-by-sap/understanding-time-tables-dimensions-in-an-sap-datasphere-world-my-1st-blog/ba-p/13569536" target="_blank"&gt;https://community.sap.com/t5/technology-blogs-by-sap/understanding-time-tables-dimensions-in-an-sap-datasphere-world-my-1st-blog/ba-p/13569536&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.sap.com/tutorials/data-warehouse-cloud-graphical5-timetables..html" target="_blank"&gt;https://developers.sap.com/tutorials/data-warehouse-cloud-graphical5-timetables..html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 05:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13750886#M4835574</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2024-07-04T05:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date not grouped in story with Datasphere model</title>
      <link>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13752552#M4835791</link>
      <description>Thanks for the answer. I have managed to create the SAP DS Time and Date dimension, but what I can't get my model to take the hierarchy to SAC. I have a table where I have included the association by the ERDAT field. I also made the association in the SQL View using the association field and also joining it in the SQL query. But none of this is working for me to get the hierarchy to appear in SAC. would you know what step I am missing? Thank you very much!</description>
      <pubDate>Fri, 05 Jul 2024 09:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13752552#M4835791</guid>
      <dc:creator>jlopezm</dc:creator>
      <dc:date>2024-07-05T09:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date not grouped in story with Datasphere model</title>
      <link>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13753932#M4835956</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/124370"&gt;@N1kh1l&lt;/a&gt;&amp;nbsp; for the start of what was the solution for me. Besides creating the SAP DS Time and Date dimension I had to follow a few more steps, which I don't know if they are too many or if any are left over, but they worked for me:&lt;/P&gt;&lt;P&gt;I created a new association in the table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_0-1720423509990.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133455iD282A89EC7795B05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_0-1720423509990.png" alt="jlopezm_0-1720423509990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And we link by dragging the two fields of the table and the Time Dimension - Day :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_1-1720423538202.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133456i0E231B284F58877A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_1-1720423538202.png" alt="jlopezm_1-1720423538202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We will use the Date field (String) since SAP provides the data in String type YYYYYMMDD and not in DATE format.&amp;nbsp;Save and deploy.&lt;/P&gt;&lt;P&gt;In the SQL view (fact) we will associate the SQL view with the dimension in the details side panel, in the Associations section:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_2-1720423604982.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133457iA916A2C24615F4DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_2-1720423604982.png" alt="jlopezm_2-1720423604982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here we must also drag to make the association:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_3-1720423621470.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133458iFFC9727D69A70824/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_3-1720423621470.png" alt="jlopezm_3-1720423621470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case we do it by the Date field since we have transformed, from the SQL view, the initial data from String to Date.&amp;nbsp;Save and deploy.&lt;/P&gt;&lt;P&gt;Finally, in the analytical model, when creating it and adding the fact, we have to make sure that we add this field:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_4-1720423687931.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133459i0A70B937E744445B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_4-1720423687931.png" alt="jlopezm_4-1720423687931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you do so, a drop-down will automatically be added to the date dimension:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_5-1720423704162.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133460iF6D30E8BA545CFDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_5-1720423704162.png" alt="jlopezm_5-1720423704162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If we look at the detail we can choose all the attributes that we want to be loaded&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jlopezm_6-1720423729622.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/133461i2BFF7A748DF8ABDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jlopezm_6-1720423729622.png" alt="jlopezm_6-1720423729622.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then we simply save and deploy.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 07:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/date-not-grouped-in-story-with-datasphere-model/qaa-p/13753932#M4835956</guid>
      <dc:creator>jlopezm</dc:creator>
      <dc:date>2024-07-08T07:30:29Z</dc:date>
    </item>
  </channel>
</rss>

