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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
IK
Regular Visitor

Dax

Hi. I have a sales plan for managers, not for clients. When I build a hierarchy in a matrix of tables, where first the manager is then the client, I want the plan to show only for managers, and not for clients. Can anybody please correct my code? My tables are interconnected with each other. they are different tables.

 

 

Spoiler
Manager plan=CALCULATE ( SUM('Manager_Plan'[Plan, %]))

 

 
 
 
2 ACCEPTED SOLUTIONS

Did you try my solution?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

Hi,

Please try this formula:

_AAndrade_0-1710243702098.png

Manager % = 
IF(
    ISINSCOPE(T_FormulaDax[ManagerID]) && NOT(ISINSCOPE(T_FormulaDax[Client])),
    SUM(T_FormulaDax[Plan%]),
    ""
)


In my example is working as you want. Please let me know if this solve your problem.

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi, @IK 

Have you solved the current problem? @_AAndrade  in the latest reply, a good solution is provided. 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

IK
Regular Visitor

IK_1-1710163043789.png

I want in result empty cell for clients. 

Did you try my solution?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




_AAndrade
Super User
Super User

Hi,

Try this:

IF(

ISINSCOPE( name of your manager column),

CALCULATE( SUM('Manager_Plan'[Plan, %]))
)





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Hi. Thank you for reply. But it doest work((

Hi,

Please try this formula:

_AAndrade_0-1710243702098.png

Manager % = 
IF(
    ISINSCOPE(T_FormulaDax[ManagerID]) && NOT(ISINSCOPE(T_FormulaDax[Client])),
    SUM(T_FormulaDax[Plan%]),
    ""
)


In my example is working as you want. Please let me know if this solve your problem.

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




IK
Regular Visitor

IK_0-1710162945384.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.