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
krzysztof
Helper III
Helper III

I have a problem with the dax formula. Calculation of partner commission

I have a problem with creating a formula.
I have data for  business partners and I need to calculate / create a machine that will show how much the partner has a commission (column amount). The matter seems simple but there are some hierarchies in partners web, and the column "Level" says about it. The formula should show what kind of partner is for whom the "NR" and "Level" column shows. Example: If the same number exists 3 times in the "NR" column: 2044; 2044; 2044 there will always be a hierarchy in the "Level" column, that is: 3; 2; 1.
The merchant assigned to level 3 and No. 2044 will be responsible for the merchant from level 2 at No. 2044. This shows the photo

 

sample.png

 

Sample in Power BI

 

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@krzysztof,

 

You may simply try LOOKUPVALUE Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lookupvalue did not help

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.