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

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
pranit828
Community Champion
Community Champion

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





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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

pranit828
Community Champion
Community Champion

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





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
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

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