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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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?

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors
Top Kudoed Authors