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
cong_nguyen_acc
Frequent Visitor

Suma con condiciones

Hola

Tengo un cálculo que necesita su ayuda como esta:

+ La tabla de datos contiene la cantidad de cada sección:

SectaCantidad
190
165
275
460
530
570

+ Lista de secciones , el cálculo de cada sección varía, por ejemplo; ; Secta 3 a 1 + 2, Secta 6 a 3 - 4 - 5, estas secciones no estarán en la tabla de datos.

SectaCal_Note
1
2
31 + 2
4
5
63 - 4 - 5

Mi objetivo es sumar cada sección con el resultado como este

SectaCal_NoteResultado deseado
1 155
2 75
31 + 2230
4 60
5 100
63 - 4 - 570

Por favor, ayúdame en esto ?

Gracias

3 REPLIES 3
vanessafvg
Super User
Super User

puedo preguntar lo que está tratando de hacer con los datos, ¿necesita ser estructurado de esta manera?

o esto funcionaría? ¿Quieres terminar con sólo el número final?

resultados de la
var tres - CALCULATE(sum('Table'[Amount]), 'Table'[Sect] en el número 1,2o)
return three - CALCULATE(sum('Table'[Amount]), 'Table'[Sect] - 4) - CALCULATE(sum('Table'[Amount]), 'Table'[Sect] á 5)




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




vivran22
Community Champion
Community Champion

Hola @cong_nguyen_acc

¿Cómo está definiendo las secciones? ¿Son estándar/fijos o dinámicos?

¡Salud!
Vivek

https://www.vivran.in/
Conectar se conecta en LinkedIn

Estimado vivran22,

El cálculo en la lista de secciones es fijo.

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.