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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Lukaszj
Frequent Visitor

Row level percentages in a matrix visual

I have a table featuring data similar to the sample data in screenshot below. I am wondering if it is possible to create a measure that will display the percentage of total dollars in each Category (A or B), i.e. for Bob the goal would be to see that 73.97% of his pay was in category A (2541/3435 * 100).

Lukaszj_0-1680711995149.png

Lukaszj_1-1680713026493.png

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1680715251641.png

 

Jihwan_Kim_1-1680715386516.png

 

Expected result measure: =
VAR _pay =
    SUM ( Sales[Pay] )
VAR _totalpay =
    CALCULATE ( SUM ( Sales[Pay] ), ALL ( Category[Category] ) )
RETURN
    DIVIDE ( _pay, _totalpay )

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1680715251641.png

 

Jihwan_Kim_1-1680715386516.png

 

Expected result measure: =
VAR _pay =
    SUM ( Sales[Pay] )
VAR _totalpay =
    CALCULATE ( SUM ( Sales[Pay] ), ALL ( Category[Category] ) )
RETURN
    DIVIDE ( _pay, _totalpay )

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Thank you! I was able to get this to work on my file with the real business information on it. However, I was able to make it to work without splitting up the table into many separate ones like you show in your relationship diagram. Is there any reason you chose to do that?

Hi,

Thank you for your message. I tried to create a "Star Schema Data model" in Power BI.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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