Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good morning, my question is how can I check if the x column is in a time range? for example, from 3pm to 4pm?
Thanks for reading.
Here I show how the data is
Solved! Go to Solution.
Hi @Y-Hernandez99P ,
Create a measure as below:
Measure 2 =
var a =HOUR(SELECTEDVALUE('Table (2)'[Time]))
Return
IF(a>=15&&a<=16,1,0)
And you will see:
The rows which return 1 are in the time period from 3pm to 4pm.
Hi @Y-Hernandez99P ,
Create a measure as below:
Measure 2 =
var a =HOUR(SELECTEDVALUE('Table (2)'[Time]))
Return
IF(a>=15&&a<=16,1,0)
And you will see:
The rows which return 1 are in the time period from 3pm to 4pm.
You can use the TIME function and IF.
https://docs.microsoft.com/en-us/dax/time-function-dax
Ricardo