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

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.

Reply
Anonymous
Not applicable

Matrix visual with pane calculation

Hello experts,

I need to create a matrix visual where I have 2 panes and along with number, I need to add a % column that will show % adding up to 100% for each pane. 
I tried % of column total but it is showing % for whole column , adding 100% at bottom where as I need adding 100% for each pane. 
Any idea how to do this?

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Use the following measure and modify as per your model:

Sales % = 

DIVIDE(
    SUM(financials[ Sales]),
    CALCULATE(
        SUM(financials[ Sales]),
        ALLSELECTED(financials[Segment])
    )
)

 

Fowmy_0-1607440687583.png

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

6 REPLIES 6
Fowmy
Super User
Super User

@Anonymous 

Use the following measure and modify as per your model:

Sales % = 

DIVIDE(
    SUM(financials[ Sales]),
    CALCULATE(
        SUM(financials[ Sales]),
        ALLSELECTED(financials[Segment])
    )
)

 

Fowmy_0-1607440687583.png

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Awesome . It worked, thanks a lot

Fowmy
Super User
Super User

@Anonymous 

 

What do mean by pane here, can you share a screenshot please?

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

By pane I meant, I have 2 categories with 10 subcategories and they both are going to Rows . Now for category 1 with all 10 subcategories values my % total should add up to 100% , also for category 2  it should add up to 100%.
Each pane is 1 category with 10 subcategories

mparhi
Frequent Visitor

Did you try to use percent of column total?

 

mparhi_0-1607400086672.png

 

Anonymous
Not applicable

As I said, it did not work as it takes the whole column as 100%, not each pane.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.