Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

porcentaje de cálculo después de la agrupación

Hola

Soy nuevo en power BI y probarlo con un conjunto de datos covid-19.

Quiero calcular el número de casos como un porcentaje de la población total. Pero primero necesito calcular el número total de casos por región.

Mis datos son similares a los siguientes:

FechaCasosMuertesCódigo de paísDatos de población
08/04/20201022Gbr

66488991

07/04/20204310Gbr

66488991

06/04/2020712Gbr

66488991

08/04/2020167E.e.u.u

327167343

07/04/202096E.e.u.u

327167343

06/04/2020299E.e.u.u

327167343

5 REPLIES 5

Hola @DES100 ,

Dividiría los datos en dos tablas.

Tabla: Casos

- Fecha

- Casos

- Muerte

- Código de país

Tabla: País

- Código de país

- Datos de la población

n:1

Casos <país ----

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hola @DES100 ,

Con las patas

Measure = DIVIDE(SUM('Table'[Cases]),AVERAGE('Table'[Population Data]))

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Anonymous
Not applicable

Hola @mwegener

¡Gracias por tu ayuda!

Sin embargo, no mencioné que primero necesito sumar los casos por país. ¿Hay alguna manera de agrupar filas?

Gracias

Hola @DES100 ,

Lo sentimos, pero no podemos entender su requisito claramente, ¿Podría mostrar el resultado exacto esperado basado en las tablas que ha compartido? ¿Desea mostrar el resultado en el objeto visual de la tabla?


Saludos

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

Hola @DES100 ,

¿qué quieres agrupar?

Una agrupación se realiza generalmente a través de la consulta por el objeto visual?

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors