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
helgekooi
New Member

No es capaz de calcular el promedio de distintos recuentos

Soy un principiante absoluto, con experiencia en Excel. En powerBI trato de calcular el promedio en lugar de los subtotales.

Creé un campo calculado para dividir dos parámetros, que funcionaban:

Ocupación 1.5m á (DIVIDE(distinctCOUNT('Export_150_cm_gebruik'[PCs active]), Calculate(DISTINCTCOUNT('PCs available]), 'PCs'[150cm] IN '"yes"-))
2020_06_04_22_20_05_rapportage_150cm_nieuw_Power_BI_Desktop.jpg
Difícil explicar lo que quiero, pero lo intentaré:

El campo 1 contiene los PC en un lugar específico que son seguros para trabajar en Covid-social distanciamiento. El campo 2 contiene los pc que estaban activos y declarado seguro para trabajar en. El campo 4 contiene pc que estaban activos, pero no son seguros para wordk en.

El campo calculado divide la medida 2 por 1, para obtener el resultado 3 (estoy un poco orgulloso de que eso funciona)

Lo mismo sucede con el campo 4 (dividido por el campo 1). El total (campo 6) se calcula correctamente.

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hola @helgekooi

¿Quiere decir que para el Campo 4, debe dividirse por 1308?

¿Qué es la fórmula de medida [Total pc's active]?

Debe ser así:

Total de PC activos : Calculate(DISTINCTCOUNT("PCs"[PCs available]), "PCs"[150cm] IN á"yes"-))

Si no es su caso, por favor comparta su archivo pbix de muestra para que tengamos una prueba.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@helgekooi Recomendaría publicar los datos de muestra sin procesar y la salida esperada en lugar de la imagen, será más fácil trabajar con datos de muestra.



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.

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.