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
Foolke
Helper I
Helper I

contar con fechas

Tengo datos similares a esto:

TicketCreation_DateSolved_Date

14/05/201829/04/2020
28/05/201923/04/2020
317/07/201928/04/2020
428/04/202028/04/2020
520/04/202028/04/2020
625/04/202028/04/2020
722/10/201923/04/2020
825/10/201930/04/2020
927/04/202028/04/2020
1012/11/201929/04/2020

Quiero calcular para los últimos 14 días calendario el recuento de tickets creados esa fecha menos el recuento de tickets resueltos en ese día calendario.

Esto quiero visualizar en un gráfico de columnas.

¿Cómo puedo lograrlo?

¡Thx!

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hola @Foolke

puede intentar crear una nueva tabla

New Table = 
ADDCOLUMNS(
CALENDAR(TODAY()-14, TODAY()),
"Count",
CALCULATE(COUNTROWS('Table'),'Table'[Creation_Date]=EARLIER([Date])) - CALCULATE(COUNTROWS('Table'),'Table'[Solved_Date]=EARLIER([Date]))
)

y usarlo para la barra visual


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

4 REPLIES 4
az38
Community Champion
Community Champion

@Foolke

¿qué debería estar en el Eje X de este gráfico?

dar un ejemplo del resultado deseado por favor


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@Foolke necesita agregar dimensión de fecha en el modelo y ese es el primer paso, tener una relación con la dimensión de fecha a estas dos fechas, una será relación activa y otras serán relaciones inactivas porque solo puede haber una relación activa entre dos tablas. Hay muchos mensajes sobre cómo agregar la dimensión de fecha en el modelo.

Cree medidas mediante la función COUNTROWS y la que tiene una relación inactiva utilice la función USERELATIONSHIP que hace que una relación inactiva sea activa.

Ahora puede ver los datos por fecha desde la dimensión de fecha mediante medidas.

Espero que ayude.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

gr.png

Debería tener un aspecto similar al siguiente:

Eje X: últimos 14 días calendario (comienza a contar hoy)

Eje Y: (recuento de tickets creados para la fecha en el eje X) menos (recuento de tickets resueltos en fecha en el eje X)

az38
Community Champion
Community Champion

Hola @Foolke

puede intentar crear una nueva tabla

New Table = 
ADDCOLUMNS(
CALENDAR(TODAY()-14, TODAY()),
"Count",
CALCULATE(COUNTROWS('Table'),'Table'[Creation_Date]=EARLIER([Date])) - CALCULATE(COUNTROWS('Table'),'Table'[Solved_Date]=EARLIER([Date]))
)

y usarlo para la barra visual


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.