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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
schoden
Post Partisan
Post Partisan

Cómo ignorar la suma negativa del total

Hola Comunidad,

Tengo medidas de declaración IF para hacer un cálculo de suma simple con condiciones como;

1. si [Margen] que es una medida si es mayor que 16450 , a continuación, restar [Margen] - 16450 más poner cero

si [Margen] <o 16450.

IF( [Margen] > 16450, CALCULATE( SUMX(VALUES('Date'[YearMonthShort]), [Gran margen]-16450)), 0))
subtract.png
La suma total incluye el valor negativo que es para el mes de marzo, el total deseado es 51,457.06

1 ACCEPTED SOLUTION

@amitchandak como awalys aprecian su opinión.

Gracias.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@schoden , Pruebe una nueva medida como

CALCULATE( SUMX(VALUES('Date'[YearMonthShort]), IF( [Margen] > 16450,[Gran margen]-16450, 0)))

@amitchandak como awalys aprecian su opinión.

Gracias.

Aprendería más si usted señala por qué está haciendo una diferencia ...

@schoden , parece que marcó su respuesta como solución 🙂

Sí Funcionó ... Apreciamos inmensamente :D.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.