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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors