cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
braypa Frequent Visitor
Frequent Visitor

Calculating percent of column in matrix with filters

I have a tabled called ABC, and that I want to use to produce a matrix that looks like this:

Ask     Rating     # Proposals   % of Proposals

Entry     High         6                30%

Entry     Medium   10              50 %

Entry     Low            4              20 %

Entry     Total          20            100%

Luxury   High          1                20%

Luxury   Medium     3               60%

Luxury   Low           1                20%

Luxury   Total          5             100%

 

The % of proposals column should calculate the % for that grouping.  I used the following measure to calculate the percentage:

 

% Proposals = DIVIDE(CALCULATE(DISTINCTCOUNT(ABC[Prop ID Number])), CALCULATE(DISTINCTCOUNT(ABC[Prop ID Number]), ALLEXCEPT(ABC,ABC[Ask])))

 

 

This worked fine, until I added additional product types to the ABC table. I have a page level filter for the product type, but the % shown in the matrix are now incorrect, and calculated off the entre proposal base, not just the proposals for this product type.  Any ideas how to fix?

 

1 ACCEPTED SOLUTION

Accepted Solutions
braypa Frequent Visitor
Frequent Visitor

Re: Calculating percent of column in matrix with filters

Solved. The answer was to add: ABC[Product]="Name" in the CALCULATE statement to include the filter needed.

View solution in original post

2 REPLIES 2
braypa Frequent Visitor
Frequent Visitor

Re: Calculating percent of column in matrix with filters

Solved. The answer was to add: ABC[Product]="Name" in the CALCULATE statement to include the filter needed.

View solution in original post

v-ljerr-msft Super Contributor
Super Contributor

Re: Calculating percent of column in matrix with filters

Hi @braypa,

 

Great to hear the problem got resolved! Could you accept your reply above as solution to close this thread? Smiley Happy

 

Regards

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 248 members 2,479 guests
Please welcome our newest community members: