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
Caiz
Frequent Visitor

Display Tickets More Than X Amount of Days Open

Hi there,

 

How do I display tickets that are open for > 3 days in as a card value?

 

Ticket IDSubjectStatusSourceTypeCreated TimeResolved Time

 

These are the column names for the Tickets table, I know how to filter to get Open tickets but can't work out how to find tickets open for more than 3 days.

 

This is how I filter to get the Open tickets:

 

Open Tickets = 
CALCULATE (
    COUNT ('October Tickets'[Ticket ID]),
    FILTER (
        ALL ('October Tickets'),
        'October Tickets'[Status] = "Open"
    )
)

 

 

Thanks in advance

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @Caiz 

To your table add a column 'open for > 3 days' = IF(DATEDIFF('Table'[Created Time],[Resolved Time],DAY)  > 3, "Yes", "No")

Then to your formula 

 

Open Tickets =
CALCULATE (
COUNT ('Sheet8'[Ticket ID]),
FILTER (
ALL ('Sheet8'),
'Sheet8'[Status] = "Open" && 'Sheet8'[open for > 3 days]= "Yes"
)
)

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

2 REPLIES 2
aj1973
Community Champion
Community Champion

Hi @Caiz 

To your table add a column 'open for > 3 days' = IF(DATEDIFF('Table'[Created Time],[Resolved Time],DAY)  > 3, "Yes", "No")

Then to your formula 

 

Open Tickets =
CALCULATE (
COUNT ('Sheet8'[Ticket ID]),
FILTER (
ALL ('Sheet8'),
'Sheet8'[Status] = "Open" && 'Sheet8'[open for > 3 days]= "Yes"
)
)

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

aj1973_7-1611278093680.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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.