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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
abehrmann
Helper II
Helper II

Need a measure to identify the number of open service tickets on any day in the past

I would like to identify a trend of the backlog of service tickets

 

The measure would count the number of tickets that arrived on or before the "date" and have a closed date on or after the date... 

Example on last monday there were 20 open tickets, 15 were open prior to that day and 5 were opened on that day.  

2 REPLIES 2
Greg_Deckler
Super User
Super User

Wow, you don't even need a variation of Open Tickets, you need Open Tickets. It's even called Open Tickets!! 🙂

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364#M147



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Tickets Open = 
VAR tmpTickets = ADDCOLUMNS('service Ticket',"Effective Date",IF(ISBLANK([DateCompleted]),TODAY(),[DateCompleted]))
VAR tmpTable =  
SELECTCOLUMNS(
    FILTER(
        GENERATE(
            tmpTickets,
            'Date'
        ),
        [Date] >= [DateCreated] &&
        [Date] <= [Effective Date]
    ),
    "ID",'service Ticket'[TicketID],
    "Date",[Date]
)
VAR tmpTable1 = GROUPBY(tmpTable,[ID],"Count",COUNTX(CURRENTGROUP(),[Date]))
RETURN COUNTROWS(tmpTable1)

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.