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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Consulta Dax para abrir los datos antes de este mes

Hola equipo,

Necesito mostrar el recuento de boletos que se abrieron antes de este mes y están resueltos o aún abiertos en el mes actual.

He escrito una Medida pero me equivoco en el conteo:

backlog = CALCULATE(COUNT(Incident[NUMBER]),FILTER(Incident,Incident[OPENED].[ MonthNo] < MONTH(TODAY())),FILTER(Incident,Incident[RESOLVED].[ MonthNo] = MES(HOY()) || EN BLANCO()))
Me estoy equivocando en el conteo porque al filtrar { mes no < mes (hoy), excluye los tickets que se abren en el mes - (7-12) de años anteriores . . .
Por favor, modifique la consulta de la mejor manera posible
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@FaisalImam , Una medida como

backlog = CALCULATE(COUNT(Incident[NUMBER]),FILTER(Incident,eomonth(Incident[OPENED],0) <= eomonth(Today(),-1)
&& (isblank(Incidente[RESUELTO]) || eomonth(Incidente[RESUELTO],0) > eomonth(Hoy(),-1) )) )

Además, consulte

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Gracias somuch señor @amitchandak .

la lógica funcionó perfectamente. ¿Puede explicar " eomonth(Incident[OPENED],0) <= eomonth(Today(),-1"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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