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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

query to form a measure

hiii

i have created a calculated column to cal culate waiting tym what is the query to form a measure

waiting tym = MOD( ('Phone Call Data'[Disconnect Time]-'Phone Call Data'[Connect Time]-'Phone Call Data'[Hold Time]-'Phone Call Data'[Talk Duration]),60)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @greeshma

use the following

waiting tym = 
MOD( 
    ( SELECTEDVALUE('Phone Call Data'[Disconnect Time]) - 
      SELECTEDVALUE('Phone Call Data'[Connect Time]) - 
      SELECTEDVALUE('Phone Call Data'[Hold Time]) -
      SELECTEDVALUE('Phone Call Data'[Talk Duration])
    )
    ,
    60
)

Did I solve your problem? Mark my position as a solution!

We appreciate your congratulations, press the thumbs up button !!

Best regards
Pranit

View solution in original post

7 REPLIES 7
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Pls share some sample data and expected output to help you better

 

Thanks

Harsh Nathani

Fowmy
Super User
Super User

@greeshma

Hi, can you check and let me know if the solution I provided worked for you please?

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

no sorry its not the correct solution

@greeshma

Thanks for the feedback

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hello @greeshma

use the following

waiting tym = 
MOD( 
    ( SELECTEDVALUE('Phone Call Data'[Disconnect Time]) - 
      SELECTEDVALUE('Phone Call Data'[Connect Time]) - 
      SELECTEDVALUE('Phone Call Data'[Hold Time]) -
      SELECTEDVALUE('Phone Call Data'[Talk Duration])
    )
    ,
    60
)

Did I solve your problem? Mark my position as a solution!

We appreciate your congratulations, press the thumbs up button !!

Best regards
Pranit

Fowmy
Super User
Super User

@Anonymous 

Use the following as measure

waiting tym = 
MOD( 
    ( MAX('Phone Call Data'[Disconnect Time]) - 
      MAX('Phone Call Data'[Connect Time]) - 
      MAX('Phone Call Data'[Hold Time]) -
      MAX('Phone Call Data'[Talk Duration])
    )
    ,
    60
)

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression.  If you don't want the total waiting time, you can use AVERAGEX instead to get average waiting time.

 

waiting tym =
DIVIDE (
    SUMX (
        'Phone Call Data',
        'Phone Call Data'[Disconnect Time] - 'Phone Call Data'[Connect Time] - 'Phone Call Data'[Hold Time] - 'Phone Call Data'[Talk Duration]
    ),
    60
)

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors