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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
thechad13
Helper I
Helper I

How can I see the percentage for only the 2 axle column in a Matrix

Greetings,

 

I am very frustrated and need some assistance. I have a Matrix that contains a list of employee ids. Each employee conducts inspections on various types of vehicles with different #s of axles over the course of a performance year. I have 3 values that I use in Matrix...Employee id #s, # of inspections & % of inspections by axle count. I can get the % breakdown within the Matrix (see attached pic) but I can't figure out how to only view the 2 axle results.

 

I would definitely appreciate any ideas even if it invlolves using a Table only, although I can't get that to work either!!! 

 

axles.JPG

 

Thanks, 

Chad

1 ACCEPTED SOLUTION

@thechad13 i got you .

from the filter pane  ( filter on visual ) , select axles =  2

Daniel29195_2-1705740422579.png

 

the measure %  = 

Daniel29195_3-1705740439170.png

% =
var _current =
CALCULATE(
sum('Table (18)'[count])
)
var totat_per_badge =
CALCULATE(
    SUM('Table (18)'[count]),
    REMOVEFILTERS('Table (18)'[axle])
)
RETURN
DIVIDE(
    _current,
    totat_per_badge,
    0
)

 

 

 

let me know if this work out for you . 

 

best regards.

 

View solution in original post

4 REPLIES 4
Daniel29195
Super User
Super User

@thechad13 

sorry i couldnt understand your requirement,

is it possible to visualize your desired output like in excel or something ? 

that would be alot of help . 

 

thanks ,

 

Hi Daniel...thanks for your reply. I have an spreadsheet that I can share but I can't find any way to upload an Excel file to this thread. I've attached a screenshot of the spreadsheet showing raw data > what I am looking for.

 

axles in excel.JPG

 

@thechad13 i got you .

from the filter pane  ( filter on visual ) , select axles =  2

Daniel29195_2-1705740422579.png

 

the measure %  = 

Daniel29195_3-1705740439170.png

% =
var _current =
CALCULATE(
sum('Table (18)'[count])
)
var totat_per_badge =
CALCULATE(
    SUM('Table (18)'[count]),
    REMOVEFILTERS('Table (18)'[axle])
)
RETURN
DIVIDE(
    _current,
    totat_per_badge,
    0
)

 

 

 

let me know if this work out for you . 

 

best regards.

 

Daniel...that totally works and is totally awesome! Thanks so much for your help!!!!!!!!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.