cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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


@ 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!:
Mastering Power BI 2nd Edition

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors