Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
I need to have on a visual on the X axess only the minutes and seconds of a date format.
I have a timestamp as 10.08.2021 00:28:00 and I tried to extract the minutes and seconds by using the MID or RIGHT formula, but they are not working as they return a string, which cannot be used in the graph as a continuous variable (the order of the time is in disorder).
There isn't a built in format to on get only hour and minutes, so how to solve it?
Solved! Go to Solution.
@BaronSdG , Two ways
Time(0,minute([Date time]),Second([Date time]) )
or
minute([Date time]) & ":" & Second([Date time])
@BaronSdG , if this in string format Right and Mid will help
if this datetime use minute and second DAX functions
Minute([Date Time]*60 + Second([Date Time])
Hi @amitchandak ,
So if I use Minute([Date Time]*60 + Second([Date Time]) this will return a column with minute:seconds in this format (with the coma ":")?
@BaronSdG , Two ways
Time(0,minute([Date time]),Second([Date time]) )
or
minute([Date time]) & ":" & Second([Date time])
You can use below DAX.
Proud to be a Super User!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
94 | |
89 | |
35 | |
35 |
User | Count |
---|---|
153 | |
99 | |
82 | |
63 | |
54 |