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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Measure ignoring Slicer in Hierarchy

Hi,

I have created this kind of measure:

 

% of value assigned to Director =
CALCULATE(DIVIDE(
            CALCULATE(SUMX(Table,Table[Value]),
            ALLEXCEPT(Table,
            Table[vendor], Table[Director])),
            CALCULATE(
                SUMX(Table,Table[Value]),
                ALLEXCEPT(Table,Table[vendor]))), ALL(Table[Project Leader]))
 
Basically the concept is that I have a table with columns "Vendor", "% of value delivered by vendor in total", "Director", "% of value assigned to Director", "Project leader", "% of value assigned to Project Leader". One vendor can deliver to many directors so this is the highest hierarchy spot. Then one director controll several Project Leader. I want this measure to show % of value assigned to director but only for this Vendor and is calculating correctly.
 
My problem is that when I put in the slicer with Project Leaders and choosing one of them, then the value of the measure described earlier is always 100%. Which is logical, because one project leader belongs to only one director, but I want this slicer to filter only rows with Project Leader, not the measure. Is there any way to do that?
1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @Anonymous 

 

Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.

 

 

 

Best Regards,

Jayleny

 

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-jialongy-msft
Community Support
Community Support

Hi @Anonymous 

 

Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi,

I figured it out, the problem was the filter on visual that has been used.

Problem Solved!

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.