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
Companyuser101
Helper II
Helper II

Error in calculation

Hello, 

 

I have this measure which calcualtes a bonus which depens on the revenue and a percentage: 

Bonus  = SUMX('Zuordnung - RSM/VP', [Bonus] * [Faktor]) 

 

We have three hierachies. 

Company

------

Employer

-------

Costumer

 

so I calculate the values for the costumer. Each employe has different costumers. I then sum the results for the bonus for each employe. And then each of these calculations is summarized for the company. Thats why I use the SUMX instead of the usual sum. 

 

But for the company hierachy in power BI it shows this:

Companyuser101_0-1704275218529.png

 

All other hierachies work. So employer and costumer hierachy. There I can see the numbers. 

 

How can I change it, so it will work?

 

 
2 REPLIES 2
v-kongfanf-msft
Community Support
Community Support

Hi @Companyuser101 ,

 

The problem may have to do with the way the data model or hierarchy you are designing interacts with each other.
1. Check the relationships between tables:
Ensure that the correct relationships have been established between the relevant tables in the data model and verify that the relationships are properly defined.

2. Check visual interactions:
In Power BI, check the interaction between the visual elements in the report. Ensure that the visual elements of the company hierarchy are not affected by filters or slicers that may affect the display.

3. Hierarchy Navigation Functions:
Use USERELATIONSHIP or RELATED to properly navigate the hierarchy. Ensure that the correct functions are used to traverse the hierarchy and calculate bonuses at each hierarchy level.

 

If you still have problems, please provide more screenshots or test data, so that I can answer you as soon as possible!

 

Best Regards,
Adamk Kong

 

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

Ritaf1983
Super User
Super User

Hi @Companyuser101 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.