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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Calculating Store Comission Fees

Hello. 

 

Here's what i got:

 

Seller | Store | Revenue 

1             2         1.200

2             2          800

3             1          300

4             1          500

 

I want to create a measure that calculates the comission fee i have to pay for each seller, respecting the following criteria:

 

If the total revenue of the store was greater than or equal to 1.000, the fee is 5%

If the total revenue of the store was less than 1.000, the fee is 2.5%

 

And then, i want to show a table with sellers, stores, revenue and comission as columns.

 

My main problem here is that, when i create this table, my actual measure changes the calculation of the comission fee to each seller individual revenue, not the total.

 

I am using something like:

if(sum(revenue)>1.000,0.05,0,25)

 

is there any way to this measure only apply to the store and not to the seller level?

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

Please try the below measure.

 

Comission store level =
VAR
totalrevenue = CALCULATE( SUM('Table'[Revenue]), ALLEXCEPT('Table', 'Table'[Store]))
RETURN
IF( totalrevenue >= 1000, 0.05, 0.025)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

Please try the below measure.

 

Comission store level =
VAR
totalrevenue = CALCULATE( SUM('Table'[Revenue]), ALLEXCEPT('Table', 'Table'[Store]))
RETURN
IF( totalrevenue >= 1000, 0.05, 0.025)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Thanks Jihwan, it worked just as i needed.

 

I appreciate your help.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.