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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
sarah2_williams
Helper III
Helper III

% of a filtered value from non filtered total

Hi all,

 

I am trying to create a measure which calculates the % of a filtered value from the total unfiltered.. I've got as far as getting the total 'Number of R' by the filtered 'Acceptance R (low level)' below - not sure where to go from here to then get this to show as a percentace of the total unfiltered 'Number of R'?

 

total by selected R = CALCULATE(sum('Aggregate 4'[Number of R]), 'Aggregate 4'[Acceptance R (low level)] = SELECTEDVALUE('Aggregate 4'[Acceptance R (low level)]))
 
Any help greatly appreciated.
 
Thanks
Sarah
2 ACCEPTED SOLUTIONS
v-yalanwu-msft
Community Support
Community Support

Hi, @sarah2_williams ;

You could try it .

total by selected R =
DIVIDE (
    CALCULATE ( SUM ( 'Aggregate 4'[Number of R] ), ALLSELECTED ( 'Aggregate 4' ) ),
    CALCULATE ( SUM ( 'Aggregate 4'[Number of R] ), ALL ( 'Aggregate 4' ) )
)

then change it type is percentage.

vyalanwumsft_0-1634519040532.png

Best Regards,
Community Support Team_ Yalan Wu
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

v-yalanwu-msft
Community Support
Community Support

Hi, @sarah2_williams ;

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
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

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @sarah2_williams ;

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @sarah2_williams ;

You could try it .

total by selected R =
DIVIDE (
    CALCULATE ( SUM ( 'Aggregate 4'[Number of R] ), ALLSELECTED ( 'Aggregate 4' ) ),
    CALCULATE ( SUM ( 'Aggregate 4'[Number of R] ), ALL ( 'Aggregate 4' ) )
)

then change it type is percentage.

vyalanwumsft_0-1634519040532.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors