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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Quiero sumar valores positivos y valores negativos por separado de una medida

Hola a todos

Tengo una medida en la que tengo valores positivos y negativos que se logra después de percibir una diferencia en 2 medidas ya existentes. Quiero agregarlos por separado y luego tomar el porcentaje en consecuencia.

Consulte la muestra siguiente:

singh_gagan30_0-1594717948974.png

Tia

4 REPLIES 4
harshnathani
Community Champion
Community Champion

Hola @singh_gagan30 ,

Puedes probar esta medida

Share % = 
var negativesum = IF ([Measure 4] < 0 ,CALCULATE(SUMX(FILTER(ALL('Table'),[Measure 4]<0),[Measure 4])))
var Positivesum = IF ([Measure 4] > 0 ,CALCULATE(SUMX(FILTER(ALL('Table'),[Measure 4]>0),[Measure 4])))
RETURN

If ([Measure 4] > 0 , DIVIDE([Measure 4],Positivesum), DIVIDE([Measure 4],negativesum))

1.jpg

saludos

Harsh Nathani


Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

amitchandak
Super User
Super User

@singh_gagan30 , fórmula para porcentaje de acción. ¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Pragati11
Super User
Super User

Hola @singh_gagan30 ,

¿Puede especificar, por favor, cómo lograr este valor porcentual en la columna "% share"?

La columna de comentarios no tiene sentido.

Escriba un ejemplo adecuado con los valores que está utilizando para calcular el porcentaje.

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Agregué todos los valores negativos y un denominador y numerador es una fila sabia. para los valores negativos he dividido los valores de fila negativos en el proceso dnominator y similar para los valores positivos.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors