Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

how to get the count of wait times above 5 minutes

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?

 

statewait timeIn network
   
VT12:00:34 AMN
   
VT12:00:59 AMN
   
VT12:00:45 AMN
   
VT12:00:37 AMN
   
VT12:00:21 AMN
   
VT12:00:17 AMN
   
VT12:00:20 AMN
   
VT12:01:09 AMN
   
VT12:00:24 AMN
   
VT12:05:57 AMN
   
VT12:00:44 AMN
   
VT12:01:55 AMN
   
VT12:01:30 AMN
   
VT12:02:00 AMN
   
VT12:01:47 AMN
   
VT12:00:28 AMN
   
VT12:00:22 AMN
   
VT12:00:47 AMN
   
VT12:00:43 AMN
   
VT12:02:31 AMN
   
VT12:00:23 AMN
   
VT12:00:10 AMN
   
VT12:06:09 AMN
   
VT12:02:02 AMN
   
VT12:04:09 AMN
   
VT12:01:36 AMN
   
VT12:01:13 AMN
   
VT12:03:27 AMN
   
VT12:04:01 AMN
   
VT12:02:36 AMN
   
VT12:02:55 AMN
   
VT12:07:21 AMN
   
VT12:12:05 AMN
   
VT12:06:59 AMN
   
VT12:05:43 AMN
   
VT12:01:03 AMN
   
VT12:06:20 AMN
   
VT12:04:30 AMN
   
VT12:03:03 AMN
   
VT12:06:19 AMN
   
VT12:04:39 AMN
   
VT12:03:46 AMN
   
VT12:04:32 AMN
   
VT12:02:10 AMN
   
VT12:05:33 AMN
   
VT12:02:58 AMN
   
VT12:02:45 AMN
   
VT12:17:54 AMN
   
VT12:07:30 AMN
   
VT12:04:12 AMN
   
VT12:00:11 AMN
   
VT12:07:50 AMN
   
VT12:08:25 AMN
   
VT12:16:33 AMN
   
VT12:04:22 AMN
   
VT12:06:34 AMN
   
VT12:02:06 AMN
   
VT12:06:15 AMN
   
VT12:03:58 AMN
   
VT12:01:25 AMN
   
VT12:02:01 AMN
   
VT12:00:41 AMN
2 ACCEPTED SOLUTIONS
v-yangliu-msft
Community Support
Community Support

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:

vyangliumsft_0-1670830351079.png

You can change it to Time format on this screen.

vyangliumsft_1-1670830351080.png

Or change it to Time format in Power Query.

vyangliumsft_2-1670830351082.png

 

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.

View solution in original post

v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

TIME(0,0,0) is the time I set for a specified time.

vyangliumsft_0-1671008683235.png

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.).

vyangliumsft_1-1671008683235.png

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

vyangliumsft_2-1671008683236.png

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

vyangliumsft_3-1671008683236.png

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.

vyangliumsft_4-1671008683236.png

 

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.

View solution in original post

8 REPLIES 8
Iryna_K
Frequent Visitor

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.

v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

TIME(0,0,0) is the time I set for a specified time.

vyangliumsft_0-1671008683235.png

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.).

vyangliumsft_1-1671008683235.png

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

vyangliumsft_2-1671008683236.png

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

vyangliumsft_3-1671008683236.png

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.

vyangliumsft_4-1671008683236.png

 

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.

Anonymous
Not applicable

thank you so much! i really appreciate it 

v-yangliu-msft
Community Support
Community Support

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:

vyangliumsft_0-1670830351079.png

You can change it to Time format on this screen.

vyangliumsft_1-1670830351080.png

Or change it to Time format in Power Query.

vyangliumsft_2-1670830351082.png

 

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.

v-yangliu-msft
Community Support
Community Support

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:

vyangliumsft_0-1670551537043.png

 

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

Anonymous
Not applicable

im trying to figure out the average of the exam time_4 column. how can i figure that out?im trying to figure out the average of the exam time_4 column. how can i figure that out?

Anonymous
Not applicable

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  format photo.png i like how you were able to break it down by 1

                                                                2.

                                                                 3. etc 

 

Anonymous
Not applicable

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?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors