Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola a todos,
Necesita ayuda sobre cómo crear una matriz agregada basada en múltiples parámetros.
Aquí están los datos sin procesar, puede descargar el Excel aquí
raw datadatos brutos
Necesito agregarlo promediando todos los OA, QtyDus, Amt por mes de segmentaciones,
entonces me gustaría mostrar el resultado agregado filtrado por el parámetro OA y QtyDus, como puede ver, LI0288 no se mostrará porque avg_QtyDus = 27,592 < Param Dus = 40,000
A continuación se muestra el resultado esperado de la matriz.
Cualquier ayuda paso a paso en DAX sería apreciada
Muchas gracias
Saludos cordiales
Adrian
Hola @Paiman89 ,
A continuación se muestra mi tabla:
El siguiente DAX podría funcionar para usted:
Avg_Amt =
AVERAGE(Table2[Amt])
Avg_OA =
var _pre = AVERAGE(Table2[OA])
var _par = SELECTEDVALUE(QA[QA])
var result = IF(_pre > _par , _pre , BLANK())
return result
Avg_QTYDus =
var _pre = AVERAGE(Table2[QtyDus])
var _par = SELECTEDVALUE(Dus[Dus])
var result = IF(_pre > _par , _pre , BLANK())
return result
El resultado final se muestra en la siguiente figura:
Saludos
Xianda Tang
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.