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
pawelj795
Post Prodigy
Post Prodigy

Contar los resultados de la medida por otra medida

Hola
Tengo debajo de una parte de mi tabla de envíos.
Actualmente, estoy evaluando cuánto envío está atrasado y cuánto es a tiempo.
Si la fecha confirmada es posterior a la fecha solicitada, la línea de pedido está vencida.

pawelj795_0-1597221492153.png

pawelj795_1-1597221614690.png


Mi pregunta es
¿Cómo contar cuántas líneas de pedido están vencidas y cuántas están a tiempo en un mes en particular y mostrarlo en un gráfico?

Tengo una tabla de citas.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@pawelj795 , Crear una medida como

countx(filter(summarize(Table,Table[SalesID],Table[IREM_ID],"_1",[Date diff Timeline]),[_1]<0),[SalesID])

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@pawelj795 , Crear una medida como

countx(filter(summarize(Table,Table[SalesID],Table[IREM_ID],"_1",[Date diff Timeline]),[_1]<0),[SalesID])

Gracias @amitchandak

Eso es lo que he estado buscando.

Por cierto, sólo por curiosidad, cuando se utiliza COUNTAX en lugar de COUNTX importaría?

Tengo una solicitud adicional.

¿Cómo formatear el color de fuente en mi valor de texto en la medida?
Quiero decir, cuando la medida devuelve "atrasado" la fuente debe ser roja, y cuando la medida devuelve "a tiempo" la fuente debe ser verde.

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.