PowerPivot fiter to slice data per hour, day or month

I have an Excel database file that contains the total passenger passes from a specific location. The total number of passenger passes is counted in a period of 2 minutes(e.g. 14:45:00 to 14:46:59). I have imported my database into PowerPivot and have also created relevant PivotTables and PivotCharts with some slicers to analyze them. How can I create a slicer which filters data in greater periods of time like hour, day or month?

March 31st, 2015 7:19am

Hi Reza,

there are some possibilities:

1) Create a date-table (DimDate) with one line per 2-minute-intervall, adding hours, day, month in columns and connect your FactTable

2) Use bucket approach to create calculated columns in your FactTable (hour, day, month..): http://blogs.msdn.com/b/analysisservices/archive/2014/06/06/bucketing-values-in-dax.aspx

(you could create separate bucket tables for hours, days, montht, year - that way you don't create so many lines - but don't know it this really makes sense, as PP can handle long tables easily)

Free Windows Admin Tool Kit Click here and download it now
March 31st, 2015 6:11pm

Thanks,


April 4th, 2015 3:54am

Thanks,


Free Windows Admin Tool Kit Click here and download it now
April 4th, 2015 7:49am

Hi Reza,

just in case you need a way to dynamically create that DimDateTime, have a look at my latest blogpost: http://www.sqlxpert.de/dimdate-mit-power-query-erzeugen/

Just check the dates selected and refresh the query (in any case). You could also set the EndDate in cell E10 to: TODAY(), that way the table would always grow to the current day.

April 5th, 2015 12:39pm

Thanks everybody,

I managed to get larger times by adding columns like hour, day, ... to my table and having these columns extract the specific portion of the time range.

Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2015 3:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics