Forum Discussion

abujouz86's avatar
abujouz86
Icon for Helper II rankHelper II
6 years ago
Solved

Calculate average per hour per day

Hi - I'm new to dax and power bi, love it but so much still to learn!   I'm working with fulfillment data and I'd like to calculate how many shipments we're averaging per hour per day. It's a very ...
  • v-gizhi-msft's avatar
    6 years ago

    Hi,

     

    I think it is easily to reach your reqiurement.

    For test, i make a small change to your sample data:

    Please try to create this calculated column:

    Day&Hour = 'Table'[Created date]&"-"&HOUR('Table'[Created time])

    Then create this column to show the Packing slip number:

    Packing slip Number = VALUE(RIGHT('Table'[Packing slip],LEN('Table'[Packing slip])-4))

    Choose above two columns as a table visual, the result shows the average of Packing slip number per day per hour:

    Here is my test pbix file:

    pbix 

    Hope this helps.

     

    Best Regards,

    Giotto Zhi