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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TJI7746
Regular Visitor

Power Query Measure help

Hi All

Can someone help me update this formula so that whenever a filter/slicer is applied to the data, the percentages show are always out of 100%.

I have "White", "Ethnic Minority" and "Not Disclosed" under ethnicity grouped column, however, when i filter "Not Disclosed" out in the visual filers, the percentages shown still show out the 3 rather than the 2 displayed values. What am i doing wrong here?

Rating % =

DIVIDE(

    _Measures[Talent Rating ALL],

    CALCULATE(

        _Measures[Talent Rating ALL],

        ALLSELECTED('Talent Rating'[Ethnicity grouped])

    ),

    0

) * 100

 

4 REPLIES 4
Anonymous
Not applicable

Hi @TJI7746 ,

 

Could you provide the dax code for [Talent Rating ALL] and the filters that affect [Rating %]? Sample data and expected output would be great.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum 

dharmendars007
Super User
Super User

Hello @TJI7746 , 

 

Please try the below code where I ahve included the Ethnic group in Remove filter..

 

Rating % =
DIVIDE(
_Measures[Talent Rating ALL],
CALCULATE(
_Measures[Talent Rating ALL],
REMOVEFILTERS('Talent Rating'[Ethnicity grouped])),0) * 100

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

I only want the values "White" and "Ethnic Minority" to be taken into account and the percentages to show out of this and not count "Not Disclosed"

Thanks for this however this did not work 😞

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors