Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello all,
I'm trying to create a new table with some informations from 2 others tables, but I need to compare the time without the seconds, and if the minutes are odd, I need to put in the next even minute.
This is the table "Speed Mac"
This is the table "Stops"
And the result that I want is "TimeStopSpeed"
Thankyou for any help!!
Solved! Go to Solution.
@CHEduardo , create a new column in Stops
New Minute =
var _time = datevalue([stopbegtime]) + time(hour([stopbegtime]), minute([stopbegtime]), 0)
return
if(mod(minute(_time) , 2) =0, _time , _time +time(0,1,0)
Now create a new column
Speed Mac
New col =
var _time = datevalue([repTime]) + time(hour([repTime]), minute([repTime]), 0)
return
maxx(filter(Stops, Stops [New Minute] = _time ) , Stops[Text])
@CHEduardo , create a new column in Stops
New Minute =
var _time = datevalue([stopbegtime]) + time(hour([stopbegtime]), minute([stopbegtime]), 0)
return
if(mod(minute(_time) , 2) =0, _time , _time +time(0,1,0)
Now create a new column
Speed Mac
New col =
var _time = datevalue([repTime]) + time(hour([repTime]), minute([repTime]), 0)
return
maxx(filter(Stops, Stops [New Minute] = _time ) , Stops[Text])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |