Forum Discussion

jitpbi's avatar
jitpbi
Post Patron
6 years ago
Solved

specific time from datetime field

Hi,   from the below sample data, i need to display the values on the visual only for the time period 10:00 AM to 04:00 PM:   DateTime    Predicted Value Actual Value Variation 9/8/2020...
  • amitchandak's avatar
    amitchandak
    6 years ago

    jitpbi ,

    In power query you can use Time.Hour

    Time.Hour([Datetime])

    if you want to remove data you can now filter between 10 to 16 

     

    if Time.Hour([Datetime])  >=10 and Time.Hour([Datetime])  <=16 then 1 else 0