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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
abehrmann
Helper II
Helper II

Necesita una medida para identificar el número de tickets de servicio abierto en cualquier día en el pasado

Me gustaría identificar una tendencia de la acumulación de tickets de servicio

La medida contaría el número de billetes que llegaron en o antes de la "fecha" y tienen una fecha de cierre en o después de la fecha...

Ejemplo el lunes pasado había 20 entradas abiertas, 15 estaban abiertas antes de ese día y 5 se abrieron ese día.

2 REPLIES 2
Greg_Deckler
Super User
Super User

Wow, ni siquiera necesitas una variación de Entradas Abiertas, necesitas Entradas Abiertas. Incluso se llama 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
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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors