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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Paiman89
Regular Visitor

Aggregated Matrix based on multiple parameters

Hi Everyone,

 

Need somehelp on how to create aggregated matrix based on multiple parameters.

here's the raw data, you can download the excel here

raw dataraw data

I need to aggregate it by averaging all the OA, QtyDus, Amt by slicers month,

then I'd like to show the aggregated result filtered by parameter OA & QtyDus, as you can see LI0288 won't show because avg_QtyDus = 27,592 < Param Dus = 40,000

 

below is the expected matrix result.

ResultExpected.jpg

any help step by step on dax would be appreciated

 

thanks a lot

warm regards

 

Adrian

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Paiman89 ,

Below is my table:

vxiandatmsft_0-1701223017779.png

The following DAX might work for you:

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

The final output is shown in the following figure:

vxiandatmsft_1-1701223083456.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Paiman89 ,

Below is my table:

vxiandatmsft_0-1701223017779.png

The following DAX might work for you:

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

The final output is shown in the following figure:

vxiandatmsft_1-1701223083456.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.