Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
i have 3 columns
1.state
2. wait times
3.in network which stands for "N"
im trying to figure out how to get the count of wait times above 5 minutes how can i go about that?
state | wait time | In network |
VT | 12:00:34 AM | N |
VT | 12:00:59 AM | N |
VT | 12:00:45 AM | N |
VT | 12:00:37 AM | N |
VT | 12:00:21 AM | N |
VT | 12:00:17 AM | N |
VT | 12:00:20 AM | N |
VT | 12:01:09 AM | N |
VT | 12:00:24 AM | N |
VT | 12:05:57 AM | N |
VT | 12:00:44 AM | N |
VT | 12:01:55 AM | N |
VT | 12:01:30 AM | N |
VT | 12:02:00 AM | N |
VT | 12:01:47 AM | N |
VT | 12:00:28 AM | N |
VT | 12:00:22 AM | N |
VT | 12:00:47 AM | N |
VT | 12:00:43 AM | N |
VT | 12:02:31 AM | N |
VT | 12:00:23 AM | N |
VT | 12:00:10 AM | N |
VT | 12:06:09 AM | N |
VT | 12:02:02 AM | N |
VT | 12:04:09 AM | N |
VT | 12:01:36 AM | N |
VT | 12:01:13 AM | N |
VT | 12:03:27 AM | N |
VT | 12:04:01 AM | N |
VT | 12:02:36 AM | N |
VT | 12:02:55 AM | N |
VT | 12:07:21 AM | N |
VT | 12:12:05 AM | N |
VT | 12:06:59 AM | N |
VT | 12:05:43 AM | N |
VT | 12:01:03 AM | N |
VT | 12:06:20 AM | N |
VT | 12:04:30 AM | N |
VT | 12:03:03 AM | N |
VT | 12:06:19 AM | N |
VT | 12:04:39 AM | N |
VT | 12:03:46 AM | N |
VT | 12:04:32 AM | N |
VT | 12:02:10 AM | N |
VT | 12:05:33 AM | N |
VT | 12:02:58 AM | N |
VT | 12:02:45 AM | N |
VT | 12:17:54 AM | N |
VT | 12:07:30 AM | N |
VT | 12:04:12 AM | N |
VT | 12:00:11 AM | N |
VT | 12:07:50 AM | N |
VT | 12:08:25 AM | N |
VT | 12:16:33 AM | N |
VT | 12:04:22 AM | N |
VT | 12:06:34 AM | N |
VT | 12:02:06 AM | N |
VT | 12:06:15 AM | N |
VT | 12:03:58 AM | N |
VT | 12:01:25 AM | N |
VT | 12:02:01 AM | N |
VT | 12:00:41 AM | N |
Solved! Go to Solution.
Hi @Anonymous ,
Is [wait time] in your data in text format, and after I changed it to text format, I got the same error as you:
You can change it to Time format on this screen.
Or change it to Time format in Power Query.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
TIME(0,0,0) is the time I set for a specified time.
Time's formula is described as.
Converts hours, minutes, and seconds given as numbers to a time in datetime format.
TIME function (DAX) - DAX | Microsoft Learn
HOUR(_date):Derive the number of hours for 12:00 : 00.
Hour's formula is described as.
Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
HOUR function (DAX) - DAX | Microsoft Learn
MINUTE(_date)+5:After getting the number of minutes at 12:00:00 in +5 minutes.
Miunte's formula is described as.
Returns the minute as a number from 0 to 59, given a date and time value
MINUTE function (DAX) - DAX | Microsoft Learn
SECOND(_date):the number of seconds to arrive at 12:00 : 00.
The Second formula is described as.
Returns the seconds of a time value, as a number from 0 to 59
SECOND function (DAX) - DAX | Microsoft Learn
TIME(HOUR(_date),MINUTE(_date)+5,SECOND(_date))): The Time function combines the hours, minutes + 5, and seconds of 12:00 : 00 together, which is 12:05:00.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For calculating Time In BoardColumns, try to use this extension https://marketplace.visualstudio.com/items?itemName=SaaSJet.tis-azure .
It can generate reports automatically using Queries. You able get these reports directly in your Azure DevOps instance.
Hi @Anonymous ,
TIME(0,0,0) is the time I set for a specified time.
Time's formula is described as.
Converts hours, minutes, and seconds given as numbers to a time in datetime format.
TIME function (DAX) - DAX | Microsoft Learn
HOUR(_date):Derive the number of hours for 12:00 : 00.
Hour's formula is described as.
Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
HOUR function (DAX) - DAX | Microsoft Learn
MINUTE(_date)+5:After getting the number of minutes at 12:00:00 in +5 minutes.
Miunte's formula is described as.
Returns the minute as a number from 0 to 59, given a date and time value
MINUTE function (DAX) - DAX | Microsoft Learn
SECOND(_date):the number of seconds to arrive at 12:00 : 00.
The Second formula is described as.
Returns the seconds of a time value, as a number from 0 to 59
SECOND function (DAX) - DAX | Microsoft Learn
TIME(HOUR(_date),MINUTE(_date)+5,SECOND(_date))): The Time function combines the hours, minutes + 5, and seconds of 12:00 : 00 together, which is 12:05:00.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you so much! i really appreciate it
Hi @Anonymous ,
Is [wait time] in your data in text format, and after I changed it to text format, I got the same error as you:
You can change it to Time format on this screen.
Or change it to Time format in Power Query.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
Column =
var _date=TIME(0,0,0)
return
COUNTX(
FILTER(ALL('Table'),'Table'[wait time] > TIME(HOUR(_date),MINUTE(_date)+5,SECOND(_date))),[state])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
thanks alot i think that works for me. one last question might seem stupid but how were you able to get the format like that. my format looks like this i like how you were able to break it down by 1
2.
3. etc
the formula worked fine but it says "dax comparison operations do not support comparing values of type text with values of type date. consider using the VALUE or FORMAT function to convert one of the values" what should i do?
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.