Forum Discussion

Sedki_Jguirim's avatar
Sedki_Jguirim
New Member
7 years ago
Solved

RollUp Data per hour

Hello everyone,   I'm trying to rollup my data per hour. I searched on the net but the solutions I found doesn't work on my table.   Here's the problem: Data is not clear, I want to sum da...
  • Anonymous's avatar
    Anonymous
    7 years ago

    The best way to handle dates and times is to create seperate date and time dimensions.  You can transform your date time field via Power Query into seperate date and time fields.

     

     

    Once in seperate fields I would create seperate date and time dimensions (tables).  So you have a model that looks like this:

     

     

    Once you have modeled the data correctly, you will be able to analyse the data by all aspects of time.  By Hour, Minute, Time Parts eg. every 5 minutes etc...

     

     

    I have created a sample workbook you can download here

     

    Sample Power BI Workbook

     

    You can also download copies of Date and Time dimension Power Query scripts here:

     

    Power Query Date Dimension Script

    Power Query TIme Dimension Script