<?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: Time Interval Question in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335687#M4202201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help in understanding on how you are comparing the data of current day and previous day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula contains objects as [Hours] and [Minutes]; however, there is no comparison of time intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is same query fetching intervals for both current and previous day or are there two different data providers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate a bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuvraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 08:14:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-09-30T08:14:42Z</dc:date>
    <item>
      <title>Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaq-p/11335686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be a basic question, but I am trying to make a time interval for a visualization project I am doing. The specific interval I am using for this example is an every thirty minute interval. I want to plot the number of actions vs. the time intervals, and then look back at the data for previous days at the same time interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if a certain day (in this example 8/31/15) did not have any actions during a 30 minute interval, my variable will not create/display that time interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/799711" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this figure, the times for 6 - 6:30 PM and 6:31 - 6:59 PM are a good example of what is missing. How can I create a variable that will allow me to plot a figure like this where the value is 0 for the times where there was no action?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[q30m] =If [Minutes] Between (0;30) Then ([Hours]+" - "+[Hours]+":30 "+[AM-PM]) Else If [Minutes] Between (31;59) Then ([Hours]+":31 - "+[Hours]+":59 "+[AM-PM])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The [Minutes], [Hours], and [AM-PM] variable I created from a date/time stamp of actions. I understand why it is not creating an interval currently, but I can't come up with a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this doesn't make sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Evan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaq-p/11335686</guid>
      <dc:creator>evanc</dc:creator>
      <dc:date>2015-09-29T15:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335687#M4202201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help in understanding on how you are comparing the data of current day and previous day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula contains objects as [Hours] and [Minutes]; however, there is no comparison of time intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is same query fetching intervals for both current and previous day or are there two different data providers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate a bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuvraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 08:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335687#M4202201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-30T08:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335688#M4202202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delay!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using one query, and the same dimension from the query has all of the date/time values of the actions. I'm trying to roll that up into the thirty minute intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using RelativeValue() to get the previous day's time interval, which works well, except when the current day is missing a time interval (because it won't show me the previous day if the current day doesn't exist) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335688#M4202202</guid>
      <dc:creator>evanc</dc:creator>
      <dc:date>2015-09-30T20:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335689#M4202203</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;have you tried with Timedim() function to get the continous dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335689#M4202203</guid>
      <dc:creator>amitrathi239</dc:creator>
      <dc:date>2015-09-30T20:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335690#M4202204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not tried the TimeDim() function, but there's always an action on each day, it's just when the action(s) are during the day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 23:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335690#M4202204</guid>
      <dc:creator>evanc</dc:creator>
      <dc:date>2015-09-30T23:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335691#M4202205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution would consist on m&lt;SPAN style="font-size: 10pt;"&gt;erging your [q30m] variable with a new dimension (call it X) coming from another provider (e.g. a flat file or xls source) that contains all the possible intervals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That is, new provider must contain a row for &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;each possible&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; interval you want in your x-axis and it will also contain X and another field (say "num") with the constant 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For example if you want to graph from 6 am to 11 pm then create a xls containing ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-----------------&amp;nbsp;&amp;nbsp;&amp;nbsp; ------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;6 - 6:30 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;6:31 - 6:59 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;7 - 7:30 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10 - 10:30 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10:31 - 10:59 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Total: 34 rows)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and create the corresponding provider in webi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;- Merge [X] with [q30m].&amp;nbsp; Notice &lt;SPAN style="font-size: 13.3333px;"&gt;q30m must be dimension type variable.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;Create a new [Actions_2] variable type measure with the following formula:&amp;nbsp; [Actions] + [num]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Graph using the merged dimension and the new measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This technique should provide the solution to fill the gaps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 00:38:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335691#M4202205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T00:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335692#M4202206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought about this before, but I was under the impression that I can't merge anything with a variable. Am I mistaken?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335692#M4202206</guid>
      <dc:creator>evanc</dc:creator>
      <dc:date>2015-10-01T12:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335693#M4202207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evan, you're absolutely right.&amp;nbsp; I was missing that basic fact &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1336/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still we can make the technique work by taking the &lt;SPAN style="color: #333333; font-size: 12px;"&gt;[q30m] calculation to the database or the universe level.&amp;nbsp; That way we would not need to create varialbes and we would be merging directly on two provider fields, not involving any variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aside, maybe it would also be easier to define simpler values on the xls and the other source and to do the formatting on the new merged dimension in webi.&amp;nbsp; I mean the DB / universe and the excel fields would be strings like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0600&lt;/P&gt;&lt;P&gt;0630&lt;/P&gt;&lt;P&gt;0700&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6 - 6:30 AM&lt;/P&gt;&lt;P&gt;6:31 - 6:59 AM&lt;/P&gt;&lt;P&gt;7 - 7:30 AM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the formatting to "&lt;SPAN style="font-size: 13.3333px;"&gt;6 - 6:30 AM" would be done in webi using the merged dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 20:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335693#M4202207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-01T20:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval Question</title>
      <link>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335694#M4202208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando is right about this. It is better do this grouping in the universe level. So that, you can merge the objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using BW as your reporting database then you are going to have to do it in InfoProvider level when you are extracting the data to the InfoProvider.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 07:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-interval-question/qaa-p/11335694#M4202208</guid>
      <dc:creator>former_member184594</dc:creator>
      <dc:date>2015-10-02T07:54:38Z</dc:date>
    </item>
  </channel>
</rss>

