<?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: Webintelligence - Calendar format in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783666#M235606</link>
    <description>&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;You can use a text file or Excel sheet to store calendar dates if you have no other option. Stick it into the same folder you keep your report in (or a sub-folder). Then run a simple query against this file and merge the relevant date objects in WebI. You then will have to adjust the different variables to use the merged date object. &lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 17:59:46 GMT</pubDate>
    <dc:creator>Tom_N8</dc:creator>
    <dc:date>2019-03-20T17:59:46Z</dc:date>
    <item>
      <title>Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaq-p/783657</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I have a requirement where I need to show the forecasts of sales and revenue for the coming days of the month which the data is coming from BEx query as shown in the table(Figure 1).&lt;/P&gt;
  &lt;P&gt;I would require to represent the same in a calendar format shown in the image attached. &lt;/P&gt;
  &lt;P&gt;Please suggest how to achieve.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Figure 1:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Datesales ForecastRevenue Forecast5th March200$100$6th March250$110$7th March240$115$8th March255$100$9th March200$120$10th March180$100$11th March200$90$---31st March220$120$&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Figure 2: Attached&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaq-p/783657</guid>
      <dc:creator>vishal_p3</dc:creator>
      <dc:date>2019-03-05T06:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783658#M235598</link>
      <description>&lt;P&gt;Attaching the table details as an image.&lt;A href="https://answers.sap.com/storage/temp/297249-image-1.png"&gt;image-1.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783658#M235598</guid>
      <dc:creator>vishal_p3</dc:creator>
      <dc:date>2019-03-05T06:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783659#M235599</link>
      <description>&lt;P&gt;with objects like 0calweek(rows) and 0weekday(columns) with keyfigure-strcuture you can create a matrix&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783659#M235599</guid>
      <dc:creator>kohesco</dc:creator>
      <dc:date>2019-03-06T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783660#M235600</link>
      <description>&lt;P&gt;Hi Hesters,&lt;/P&gt;&lt;P&gt;Can you please elaborate your comments.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783660#M235600</guid>
      <dc:creator>vishal_p3</dc:creator>
      <dc:date>2019-03-06T09:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783661#M235601</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I see you have date in your CUBE/MULITPROVIDER so derive 0calweek and 0weekday from it.&lt;/P&gt;&lt;P&gt;0calweek will give you all the weeks of the year&lt;/P&gt;&lt;P&gt;0weekday will give you all the days of the week (1-&amp;gt;7) (Mon-&amp;gt; Sun as text)&lt;/P&gt;&lt;P&gt;so this info should give you a matrix like&lt;/P&gt;&lt;P&gt;                     day      1      2      3     4       5      6       7&lt;/P&gt;&lt;P&gt;Week 1                     X     X     X     X       X      X      X&lt;/P&gt;&lt;P&gt;Week 2                     X    X     X     X       X       X      X&lt;/P&gt;&lt;P&gt;Week 3                     X    X     X     X       X      X       X&lt;/P&gt;&lt;P&gt;Week 4                     X    X     X     X        X      X      X&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 10:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783661#M235601</guid>
      <dc:creator>kohesco</dc:creator>
      <dc:date>2019-03-06T10:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783662#M235602</link>
      <description>&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;This is relatively easy to achieve from a formatting perspective. &lt;/P&gt;&lt;P&gt;The hardest part is the formatting piece. Start with creating a second
query against an integer range that will return values from 1 to 6. I have
called this [DayOffset] in my query. The values are needed to dynamically size
the "hidden" table that sits in front of the first table.&lt;/P&gt;&lt;P&gt;Once you have run both your queries, only three variables need to be
created: &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;[Day Name] which is a detail object associated to
the [Date] dimension: =DayName([Date]) &lt;/LI&gt;&lt;LI&gt;Next, create a measure variable. I called it
[Marker] =DaysBetween((Min(LastDayOfWeek([Date]))In Report);Min([Date])) You
will need this to determine filter values for each individual table block
consting of seven week days: &lt;/LI&gt;&lt;LI&gt;Finally, create another variable that is needed for
the dynamic dummy table that shifts your first table block according to which
day your calendar month starts on. I called it [Dummy Table Adjust] and it has
the following syntax: =If([Marker]=-1) Then (([DayOffset]
Where([DayOffset] InList(1;2;3;4;5;6))) ForEach([DayOffset]))
ElseIf([Marker]=-2) Then (([DayOffset] Where([DayOffset] InList(1;2;3;4;5)))
ForEach([DayOffset])) ElseIf([Marker]=-3) Then (([DayOffset] Where([DayOffset]
InList(1;2;3;4))) ForEach([DayOffset])) ElseIf([Marker]=-4) Then (([DayOffset]
Where([DayOffset] InList(1;2;3))) ForEach([DayOffset])) ElseIf([Marker]=-5)
Then (([DayOffset] Where([DayOffset] InList(1;2))) ForEach([DayOffset]))
ElseIf([Marker]=-6) Then (([DayOffset] Where([DayOffset] InList(1)))
ForEach([DayOffset]))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Once you have created the variables, add them to your default table
block. It will make it a little easier to begin with: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301291-c.png" /&gt;&lt;/P&gt;&lt;P&gt;Next, apply a filter to the table block: [Marker] Between 0 And 6 &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301292-d.png" /&gt;&lt;/P&gt;&lt;P&gt;Now, apply your first formatting to the table. Start with turning the table
into a cross table and adding two rows above the header: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301293-e.png" /&gt;&lt;/P&gt;&lt;P&gt;Add "Sales" and "Forecast" to both top row header
cells, then move [Day Name] from the vertical axis to header row 2. Merge both
cells in rows 2 and 3, respectively. Move your Revenue and Sales Forecast
measures into their respective body axis cells and delete the empty column from
the horizonatl axis. Note that your vertical axis will now be empty. Remove the
column via right-clicking: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301294-f.png" /&gt;&lt;/P&gt;&lt;P&gt;Your first table block now looks like this: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301295-g.png" /&gt;&lt;/P&gt;&lt;P&gt;Now, apply some more formatting. Select all cells and go to Format Cell:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the General section untick the Autofit options and select 2 cm for width
and 0.6 cm for Height &lt;/LI&gt;&lt;LI&gt;In Alignment reduce the cell padding to 0 cm for all
four sides. Choose Center for vertical and horizontal alignment &lt;/LI&gt;&lt;LI&gt;In Appearance
select No Color for the background &lt;/LI&gt;&lt;LI&gt;Apply further individual formatting to
your cells to match the desired style&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Next, you need to add a custom sort to [Day Name] in the table block to
achieve the desired start day and date. In this case we start our weeks on
Sunday. Therefore create your custom sort in ascending order with&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sunday&lt;/LI&gt;&lt;LI&gt;Monday&lt;/LI&gt;&lt;LI&gt;Tuesday&lt;/LI&gt;&lt;LI&gt;Wednesday&lt;/LI&gt;&lt;LI&gt;Thursday&lt;/LI&gt;&lt;LI&gt;Friday&lt;/LI&gt;&lt;LI&gt;Saturday&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Format the table layout to move it horizontally to 0.5 cm from the Left
of Report, and vertically 0.5 cm from the Top of Report.&lt;/P&gt;&lt;P&gt;We are now getting to the stage where you simply duplicate the table
blocks (copy and paste), and aligning them right underneath one another before
adjusting the filters. You will need six table blocks in total. Once you have
applied the formatting to each block you will need to adjust the table filters for
each block as follows: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Block 1: [Marker] Less Than 0 &lt;/LI&gt;&lt;LI&gt;Block 2: [Marker] Between 0 And 6 &lt;/LI&gt;&lt;LI&gt;Block 3: [Marker] Between 7 And 13 &lt;/LI&gt;&lt;LI&gt;Block 4: [Marker] Between 14 And 20 &lt;/LI&gt;&lt;LI&gt;Block 5: [Marker] Between 21 And 27 &lt;/LI&gt;&lt;LI&gt;Block 6: [Marker] Greater Than 27&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your report now looks like this: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301298-j.png" /&gt;&lt;/P&gt;&lt;P&gt;We are now getting very close. Next, you need to create the dummy table to
adjust the table alignment of your first block. Copy one of the table blocks
and clear the contents from all cells as well as the filter that sits on the
copied block. Add [DayOffset] from your second query to the block and then
apply a filter on table: [Dummy Table Adjust] Is not null: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301299-k.png" /&gt;&lt;/P&gt;&lt;P&gt;Readjust the width of the table cells in the dummy block to 2 cm and
then adjust the positioning of the dummy table block to place it in front of
your top table block, i.e. Format Table to move it horizontally to 0.5 cm from
the Left of Report, and vertically 0.0 cm from the Top of Report. Then adjust
your top table block position to 0 cm from the Right edge of the dummy table.&lt;/P&gt;&lt;P&gt;You are now almost there!&lt;/P&gt;&lt;P&gt;Apply the final touches by deleting all but the [DayOffset] row and one
other row from the dummy table. Then remove the borders from the cells, remove
any background colors and set the font color to White. Your top table block is
now perfectly aligned. No matter what day your month starts, the top calendar block will always start in perfect alignment: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301301-n.png" /&gt;&lt;/P&gt;&lt;P&gt;Last but not least apply "Hide when empty" General Display
formatting to you first, last and the dummy table blocks. Then go to Page
Setup, change the Page mode to Landscape and adjust your margins to fit the
full "calendar" on one page. With the cell sized in this example
reduce the left and right margins to 0.3cm. &lt;/P&gt;&lt;P&gt;Voila! &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/301300-p.png" /&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783662#M235602</guid>
      <dc:creator>Tom_N8</dc:creator>
      <dc:date>2019-03-06T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783663#M235603</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;Thank you for the detailed explanation.&lt;/P&gt;&lt;P&gt;I need a clarification on how &amp;amp; where the integer range [DayOffset] should get created and set from 1 to 6? do we require to create a new BEx qurey?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783663#M235603</guid>
      <dc:creator>vishal_p3</dc:creator>
      <dc:date>2019-03-07T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783664#M235604</link>
      <description>&lt;P&gt;Dear Vishal,&lt;/P&gt;&lt;P&gt;You do not need to create another BEx Query for the second data provider. Instead you could run a second query on the same BEx provider, e.g. where you only pull the first six dates. &lt;/P&gt;&lt;P&gt;After you have run the query, create a new dimension variable [DayOffset] =ToNumber(Substr((FormatDate([Query 4].[Date];"dd/mm/yyyy"));2;1);"0") This will return values 1 to 6 which feed into the [Dummy Table Adjust] variable which we need for the filter on the dummy block.&lt;/P&gt;&lt;P&gt;Then right-click your dummy table and replace the old variable with the new variable via "Assign Data...".&lt;/P&gt;&lt;P&gt;Job done.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 16:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783664#M235604</guid>
      <dc:creator>Tom_N8</dc:creator>
      <dc:date>2019-03-07T16:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783665#M235605</link>
      <description>&lt;P&gt;Dear Tom,&lt;/P&gt;&lt;P&gt;Thank you for your detailed explanation was really appreciated. &lt;/P&gt;&lt;P&gt;Off late I realized that I have multiple values for few salesForecast or RevenueForecast(screenshots attached) and also there wouldn't be data continuous for all the dates of the month. However I tried using the "timeDim" function as a variable in Webi to get the continuous dates using "Date" field but later could not able to split in to blocks using the marker (0 to 6; 7 to 14;....).&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have a "caldate"(which has all the dates 1st March through 31st March) coming from source which could have been used for the calendar format.  Please suggest what best way if we could achieve this? &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishal P&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 02:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783665#M235605</guid>
      <dc:creator>vishal_p3</dc:creator>
      <dc:date>2019-03-18T02:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Webintelligence - Calendar format</title>
      <link>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783666#M235606</link>
      <description>&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;You can use a text file or Excel sheet to store calendar dates if you have no other option. Stick it into the same folder you keep your report in (or a sub-folder). Then run a simple query against this file and merge the relevant date objects in WebI. You then will have to adjust the different variables to use the merged date object. &lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 17:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/webintelligence-calendar-format/qaa-p/783666#M235606</guid>
      <dc:creator>Tom_N8</dc:creator>
      <dc:date>2019-03-20T17:59:46Z</dc:date>
    </item>
  </channel>
</rss>

