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
sparkplug93751
Helper II
Helper II

Día promedio por mes

Hola

Tengo un conjunto de datos que registra cada vez que alguien inicia sesión.

Cada vez que alguien inicia sesión, se crea una fila, es decir, si 15 personas inician sesión, se agregan 15 filas.

Quiero calcular el número promedio de filas por día durante un mes. es decir, si hay un total de 62 para el mes de mayo, avg sería 2

Actualmente usando:

if(hasonevalue(table1[monthend], calculate(averagex(values(table1[date],calculate(count(table1[names]),table1[occupation<>blank()),calculate(calculate(count(table1[names],table1[occupation]<>blank())

Cualquier ayuda es muy apreciada. Creo que estoy pensando demasiado en esto

1 REPLY 1
amitchandak
Super User
Super User

@sparkplug93751 ,

Supongamos que su lógica es correcta

if(hasonevalue(table1[monthend], 
averagex(summarize(table1[date],"_1",calculate(count(table1[names]),not(isblank(table1[occupation])))),[_1])
,calculate(count(table1[names]),not(isblank(table1[occupation]))))

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.