Hi, Guys, could you please help me with this challenge? I have a column with timestamp when an order is submitted. I need to compare if this order is submitted before 9:00PM, can I do this in Power Query or PowerBI? and how I can insert the static time (in this case, 9:00PM)?
@Mike Thanks for posting your question on the forum. Your question can be best answered if you can share your pbix and source file. You can do this both in power query and power bi but without looking at your data it is not possible to clearly provide the solution
Hi, @MudassirAli, here is the attachment. There is one table in the file, which include OrderID and order submitted timestamp. I’d like to compare timestamp to see which order was created 2 hours before 9:00PM.
I’m also attaching the PBIX file of the working for the reference. I’ve added the static time directly in the Power Query you can go through the simple transformative steps in it.
Just give a shout in case you need anything.
Hoping you find this useful and meets your requirements that you’re looking for.
Quick Note: I’ve separate the Submitted Date column into Date and Time columns so that I can use the DATEDIF function in the formula.
Hi, @MudassirAli@Harsh Now I have more challenge with this one, we need to add store open time for each row. I can add 9:00AM as store open time for each order in Power Query. Now my question is how I can compare the order submission time with store close and open time. I need to flag those orders if the submitted time falls between one hour before store close and store open time (in this case, every orders that were submitted between 8:00PM a to 9:00AM), Can we do that in PowerBI?
If possible for you can I request you one thing? Can you please create a new thread for this question since original question that were asked by you had already been answered.
Just mark us both in that thread and I’ll be there with my solution.