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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
IK
New Member

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, %]))

 

 
 
 
1 ACCEPTED SOLUTION

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
v-jianpeng-msft
Community Support
Community Support

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
New Member

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
New Member

IK_0-1710162945384.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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