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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ivan_larson_cki
Helper III
Helper III

Display Measure Value Once in Matrix

I have a matrix that breaks out an Amount value over several columns, and the amount info is parsed out by several Row values. I need to insert after the last of those Row values a proportion that breaks down the proportion accounted for by that Row value.

 

So in this Matrix, I'd like to show the proportion of foods (regardless of year) out of the total for each employee. E.g. for Dana, you'd see the proportion of burgers out of all foods, proportion of fires out of all foods, etc. This needs to be displayed before the breakout of amounts by year.

Matrix.png

 

Is this doable? I know how to create a measure to calculate the value using CALCULATE, SUM, and ALLEXCEPT, but I can't display that Measure in the matrix unless I want it broken out by year along with the amounts. I know I can work around this limitation if I have separate values in my dataset for each year's amount, but would like to avoid doing that as then all years will have to be displayed regardless of other slicers I apply.

 

In the data, Account Manager on Table1 relates to Employee on Table2.

 

2 REPLIES 2
dax
Community Support
Community Support

Hi ivab, 

Below is my design:

table1

Account Manager Amount Food Year
a 10 pie 2017
a 20 pizza 2017
a 30 burger 2017
a 50 pie 2018
a 20 pizza 2018
a 5 burger 2018
a 10 pie 2019
a 3 pizza 2019
a 1 burger 2019
b 40 pie 2017
b 20 pizza 2017
b 10 burger 2017
b 50 pie 2018
b 20 pizza 2018
b 30 burger 2018
b 10 pie 2019
b 5 pizza 2019
b 10 burger 2019

Table2

employ hire year
a 2005
b 2006

relationship between to table is one-many

Then you could ceate measure like below

Measure =
SUM ( table1[Amount] )
    / CALCULATE (
        SUM ( table1[Amount] ),
        FILTER (
            ALLEXCEPT ( table1, table1[Year] ),
            table1[Account Manager] = MIN ( Table2[employ] )
        )
    )

325.PNG

Best Regards,
Zoe Zhi

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

Thanks. Is there a way to do this that doesn't require having the measure broken out by year? I just want to show the overall proportion, but still have the amount data broken out by year.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors