Current month's certain hours compares with previous year same month full data

Hello,

I’m trying to create a table visualization which shows current month’s certain hour data compare to same month previous year full month data.
I tried with Period Over Period comparison, but here my requirement is to show MTD data having only hours between 11:00 am to 05:00 pm daily in table format and want to compare same month previous year but full 24 hour data.

Period Over Period comparison return same filter parameter both side, so how it will work if i want to pass different parameter for comparison data ? Or is there any other way to achieve this kind of report?

Because this report i required to create as a scheduler for auto email notification.

Any help would be appreciated.

image

Hi,

Using the period over period option probably won’t do this if the previous period needs different filtering. If you’re able to move your time dimension from Rows to Slicers, there are ways you should be able to do this although this means the rows would need to refer to days using only attributes like Week of Year, Month of Year, Day of Month, etc. rather than referring to full dates in like in your current table.

With your time dimension in Slicers along with the attribute Hour of Day, beginning in version 8 adding a slicer comparison should allow you to filter these two slicers differently between two different measures:

  • Measure 1: filter the time dimension to MTD and hour of day to 11am-5pm
  • Measure 2: MTD offset by -12 months (using the Advanced option in the menu) and 24h

In version 7 you can only filter one slicer at a time in slicer comparison measures and I don’t think that would accomplish your goal, but there is another option. If you create two separate metric sets that each display this same data but filter the slicers differently like above, then you can use a formula visualization to combine them into a single result and add your % Change at the same time. Your formula visualization could be created using a formula like this one, for example:

($table1.Metric Set 1.Current$ / $table2.Metric Set 2.Previous$) - 1

(You can click on the table column to insert it into the formula instead of typing.)

I can think of another option if preferred using a dedicated data cube, by adding an expression to the select transform (if this is from a database) to get the hour of each raw date value. For SQL Server this could be DATEPART(hour, [Date]). Then a Filter transform can filter the data so that Date is Less Than Current Year or Hour is Between 11 and 17 (setting the transform’s Operator to Or).

Hope this works for you

Hi Jamie,

Thanks very much for reply.

currently we are using version 7.0.2, Also in our case second dedicated data cube not a good option because all this data we are daily loading through data warehouse job and it will time taking process everyday. And regarding Formula visualization i already tried it, but one more time i will try and let you know how it will achieve in this scenario.

Thanks & Regards
Jatin.