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

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.

Reply
Anonymous
Not applicable

calculate waiting tym <30sec and <60 sec

hiiii

i want to display all the columns with waiting tym < 30sec as one table and < 60sec in another table using dax operations

image.png

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

According to my understanding, you want count the rows where the waiting time is <60s,right?

 

You could following the steps:

1.Set the waiting time column (as your data sample shown) as "Time",than format it.

2.Add a new table using formula like this:

 

wait tym < 60 =
FILTER ( 'Wait', 'Wait'[waiting tym] < TIME ( 0, 0, 60 ) )

 

3.Create a measure to count rows:

 

Countrows =
COUNTROWS ( ALL ( 'wait tym < 60' ) )

 

Then the visual looks like this:

8.12.4.PNG

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

As @FrankAT  said, you could use Time(Hour,Minute,Second) to calculate the value. 

In addition, it is important to note that the waiting time's data type should be Time and then format it as follows:

8.12.1.PNG

Best regards,

Eyelyn Qin

Anonymous
Not applicable

hiii eleyn

i tried applying those things but the output is not been in sec its showing as 00:00:00 for all the columns

this is the formula i applied

wait tym < 60 = COUNTROWS(FILTER('Phone Call Data','Phone Call Data'[Wait Time]< TIME(0,0,30)))
image.png

FrankAT
Community Champion
Community Champion

Hi @Anonymous 

take a look at the following solution:

 

11-08-_2020_22-57-19.png

 Regards FrankAT

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.