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.
Queridos amigos,
Tengo la siguiente tabla:
descripción | valor |
Manzana Uno | 3 |
Naranja Uno | 8 |
Apple Dos | 4 |
Naranja Dos | 10 |
Tengo que sumar esos valores que contiene "Dos" en la descripción.
¿Cómo se puede lograr eso sin usar muchas fórmulas CALCULATE?
gracias
Solved! Go to Solution.
Hey @gianmarco ,
Creo que el mejor enfoque es sin ningún CALCULATE en absoluto 😉
Prueba eso:
Sum contains Two =
SUMX(
myTable,
IF(
CONTAINSSTRING( myTable[Description], "two" ),
myTable[Value]
)
)
Sum TWO =
CALCULATE(
SUM( 'Table'[Value] ),
CONTAINSSTRING( 'Table'[Description], "TWO" )
)
Sum TWO =
CALCULATE(
SUM( 'Table'[Value] ),
CONTAINSSTRING( 'Table'[Description], "TWO" )
)
Hey @gianmarco ,
Creo que el mejor enfoque es sin ningún CALCULATE en absoluto 😉
Prueba eso:
Sum contains Two =
SUMX(
myTable,
IF(
CONTAINSSTRING( myTable[Description], "two" ),
myTable[Value]
)
)
Hey @gianmarco ,
también puede aceptar varias publicaciones como solución si funcionan para usted 😉
Pero estoy feliz de que haya encontrado un resultado para su problema.
Que tengas un gran fin de semana
Denis
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |