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
ayoubb
Helper IV
Helper IV

Calculate how many tickets resolved in less to 4hours and its percentage

HELLO,

PLease i'm still fresh in power bi,

i have this table below:

Resolved tickets.jpg

 

and i want to calculate:

How many tickets number have been resolved in less to 4hours?

the percentage of ticket resolved in less to 4hours?

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@ayoubb 

Create a column in your table to calculate the duration in hours ( Go to Modeling Tabl, click New Column, and paste). Replace Table14 with your table name.

 

Resolved Duration = DATEDIFF(Table14[Created Date],Table14[Resolved Date],HOUR)

Create the following 2 measures:

Resolved Less Than 4 Hours = 

CALCULATE(
    COUNTROWS( Table14 ) , 
    Table14[Resolved Duration] < 4
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

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


Website 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

View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @ayoubb ,

 

In addition, you can put this measure in a card visual to get the percentage.

 

Percentage =
DIVIDE ( [Resolved Less Than 4 Hours], COUNTROWS ( Table ) )

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@ayoubb 

Create a column in your table to calculate the duration in hours ( Go to Modeling Tabl, click New Column, and paste). Replace Table14 with your table name.

 

Resolved Duration = DATEDIFF(Table14[Created Date],Table14[Resolved Date],HOUR)

Create the following 2 measures:

Resolved Less Than 4 Hours = 

CALCULATE(
    COUNTROWS( Table14 ) , 
    Table14[Resolved Duration] < 4
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

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


Website 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

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