Forum Discussion
specific time from datetime field
- 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
Hi amitchandak ,
Just thinking to do it in the edit query, if we can select from the datetime field for the time 10 AM to 4 PM. So the data will be loaded for 10 AM to 4 PM only. Can you please help me to do this in power query.
Thanks
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
- jitpbi5 years agoPost Patron
Hi amitchandak ,
I am gettiing another challenege after republishing the report to service, where i replaced with the existing dataset, the "hour" column is not showing in the table. Also getting the data for entire time as before not for the time (>=10 &<= 16) i filtered in the power query. The same file in desktop was working fine where hour column is there in the table and data is filtered for the time >=10 &<= 16.
Can you please suggest what would be the reason and how to resolve this.
Thanks