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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
kjsddf11
New Member

Need help with matrix %

Greetings Power BI community!

 

I need to replicate the Excel matrix shown in the snippet below, in Power BI matrix. I've tried using a combination of formulas in Power BI, but the output isn't the same as in Excel. Could any expert please help me with this? I'm new to Power BI and eager to learn. Thanks in advance!

 

kjsddf11_0-1713161032114.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kjsddf11 ,
Thanks for @ryan_mayu  reply, here's how it worked for me
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1713252057581.png

Create a column

Column = 
var _equal = 
CALCULATE(
    MAX('Table'[Value]),
    FILTER(
        ALLEXCEPT('Table','Table'[Name]),
        'Table'[Name] = 'Table'[Name2]
    )
)
RETURN
[Value]/_equal

Final output

vheqmsft_1-1713252123249.png

Best regards,

Albert He

 

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

5 REPLIES 5
Anonymous
Not applicable

Hi @kjsddf11 ,
Thanks for @ryan_mayu  reply, here's how it worked for me
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1713252057581.png

Create a column

Column = 
var _equal = 
CALCULATE(
    MAX('Table'[Value]),
    FILTER(
        ALLEXCEPT('Table','Table'[Name]),
        'Table'[Name] = 'Table'[Name2]
    )
)
RETURN
[Value]/_equal

Final output

vheqmsft_1-1713252123249.png

Best regards,

Albert He

 

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

 

 

kjsddf11
New Member

@ryan_mayu it did not work sadly. The primary data isn't actually pivoted; I only formatted it as a pivot table in Excel for illustration purposes. The main dataset contains thousands of individual records for each brand for each month. Is there any other way to get the percentage i want?

then pls provide the sample data





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu , i can't create a sample data as it has so much to replicate. It will be a exhausting task. I am not sure, how to handle this!

ryan_mayu
Super User
Super User

@kjsddf11 

you can do the data transform(unpivot table) in pq

then create a measure

Measure = sum('Table'[Value])/CALCULATE(sum('Table'[Value]),all('Table'),'Table'[name]=max('Table'[name])&&'Table'[Attribute]=max('Table'[name]))
 
pls see the attachment below




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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