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.
Hola
Como se muestra en la figura a continuación, estoy ignorando el filtro de categoría3 en la función ALLEXCEPT, pero quiero que la segmentación de datos externa de la categoría3 funcione.
Sin embargo, para aplicar una cortadora externa, es necesario poner categoría3 en la función ALLEXCEPT.
Entonces el cálculo no funcionará. Quiero saber la solución.
Gracias
tabla de destino
medir fomula
not_slicer =
var selectedfilter1 = SELECTEDVALUE('table'[category1])
var table1 = ADDCOLUMNS('table',"sum_value",MAXX(FILTER('table','table'[category1]=selectedfilter1)
,CALCULATE(SUM('table'[value]),ALLEXCEPT('table','table'[category1],'table'[category2]))))
RETURN
MAXX(table1,[sum_value])
not "E""H" =
var selectedfilter1 = SELECTEDVALUE('table'[category1])
var table1 = ADDCOLUMNS('table',"sum_value",MAXX(FILTER('table','table'[category1]=selectedfilter1)
,CALCULATE(SUM('table'[value]),ALLEXCEPT('table','table'[category1],'table'[category2],'table'[category3]))))
RETURN
MAXX(table1,[sum_value])
Solved! Go to Solution.
Creo que esto debería funcionar:
MAXX (
ADDCOLUMNS (
SUMMARIZE ( 'table', 'table'[category1], 'table'[category2] ),
"SUM_value", CALCULATE ( SUM ( 'table'[value] ) )
),
[SUM_value]
)
Creo que esto debería funcionar:
MAXX (
ADDCOLUMNS (
SUMMARIZE ( 'table', 'table'[category1], 'table'[category2] ),
"SUM_value", CALCULATE ( SUM ( 'table'[value] ) )
),
[SUM_value]
)
Hola y gracias por responder a mi pregunta. Tengo preguntas adicionales.
¿Es posible hacer lo mismo con la función ALLEXCEPT?
Tengo una razón para usarlo.
Sería útil si pudieras responder a esta pregunta también.
Gracias.
No estoy seguro de entender la pregunta. Podrías poner ALLEXCEPT dentro del CALCULATE en el DAX que te di pero sin saber por qué quieres usarlo, no tengo forma de saber si se comportará como pretendes o no.
gracias por su respuesta.
Lamento la intención poco clara. Volví a preguntar qué quería hacer.
Me encantaría que pudiera responder a esta pregunta.
Gracias
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |