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
Anonymous
Not applicable

Promedio mensual del recuento de cada día

Hola, tengo un conjunto de datos como este:

111.png

Quiero calcular el promedio del conteo de cada día. Dado que el recuento para el mismo es el mismo, quiero que el recuento de cada día se calcule sólo una vez.

Esto es lo que quiero:

Promedio de la clase (100+200+300+400) / 31

Dividido por 31 porque hay 31 días en mayo.

¿Es posible lograrlo escribiendo medidas?

Cualquier ayuda es apreciada.

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@MelauriaFT

se puede probar esto

Measure = 
VAR _sum=SUMX(SUMMARIZE('Table','Table'[date],'Table'[count]),'Table'[count])
VAR _days=DATEDIFF(min('Table'[date]),EDATE(min('Table'[date]),1),DAY) 
RETURN _sum/_days

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

amitchandak
Super User
Super User

@MelauriaFT , Pruebe uno de los dos

Averagex(summarize(Table,table[Date],"_1",[count]),[_1]) // Or use sum(Table[count])

Averagex(values(table[Date]),[count]) // Or use sum(Table[count])

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hola

Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@MelauriaFT , Pruebe uno de los dos

Averagex(summarize(Table,table[Date],"_1",[count]),[_1]) // Or use sum(Table[count])

Averagex(values(table[Date]),[count]) // Or use sum(Table[count])
ryan_mayu
Super User
Super User

@MelauriaFT

se puede probar esto

Measure = 
VAR _sum=SUMX(SUMMARIZE('Table','Table'[date],'Table'[count]),'Table'[count])
VAR _days=DATEDIFF(min('Table'[date]),EDATE(min('Table'[date]),1),DAY) 
RETURN _sum/_days

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.