Forum Discussion

dannytan1112's avatar
dannytan1112
Icon for Helper I rankHelper I
3 years ago
Solved

24 hours datettime

Hi,    I have a question since i found no answer to it. I have tried generate , dateadd but still can't find the answer. I would like to make a measure for every hour range from min datetime and m...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , dannytan1112 

    According to your description, you want to "every hour range from min datetime and max datetime".And bu another, if you create a measure , it can not return a list , measure in Power Bi can only return a value.

    Here are the steps you can refer to :
    (1)This is my test data:

    (2)We can click "New Table" and enter:

    Table 2 = GENERATESERIES(
    MIN('My Table'[Column1]),
    MAX('My Table'[Column1]),
    1/24)

    Then we can get this table you want to :

     

    For more information, you can refer to :
    Creating a List of Numbers or Dates in Power BI using GenerateSeries Function in DAX - RADACAD

    CALENDAR function (DAX) - DAX | Microsoft Learn

     

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly