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
elaj
Helper IV
Helper IV

mostrar datos ponderados de la encuesta en Power BI

Hola

Trabajo en investigación de mercado. Los envíos de cada encuestado se almacenan fila por fila. Hacemos encuestas clásicas donde se están ponderando los casos. Intento averiguar si Power BI se ajusta a nuestras necesidades. ¿Hay una función para aplicar un peso a cada encuestado para que muestre los números ponderados en los objetos visuales?

Y si no... ¿Hay una solución?

los datos se ven así

Id

Q1Q2Peso
1121,2
252

0,8

3330,9
4111,1

y quiero ver el porcentaje de cada categoría como esa

Q1sin ponderarPonderado
150%58%
20%0%
325%23%
40%0%
525%20%

Gracias

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hola @elaj ,

En primer lugar, podemos desicotelar otras columnas que no sean ID y peso.

12.jpg

A continuación, podemos crear dos medidas para satisfacer sus requisitos:

unweighted = DIVIDE(COUNT('Table'[CaseNumber]),CALCULATE(COUNT('Table'[CaseNumber]),ALLSELECTED('Table'[CaseNumber])),0)

weighted = DIVIDE(SUM('Table'[weight]),CALCULATE(SUM('Table'[weight]),ALLSELECTED('Table'[CaseNumber])),0)

13.jpg


Por cierto, pbIX archivo como adjunto.


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.
mahoneypat
Employee
Employee

Lo que está intentando hacer es definitivamente factible en Power BI, pero puede explicar un poco más. ¿Cuál es la matemática que haces desde tu mesa de inicio para obtener (por ejemplo) el 50% y el 58% para id 1?

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.