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

Help in calculating employee bonuses

Hi I need help with creating two measures to calculate employee bonuses.

 

I have such a report and I would like to calculate two measures in the lower table:

equlibrum52_0-1691646368456.png

 

 

The first measure "Percentage of orders from category 1" - it is supposed to tell what percentage of all orders of a given employee are orders from category 1

 

The second measure: "Bonus" - for each order, if for a given agent, the percentage of orders from the first category is greater than 50%, then the bonus for the order is 20, and if it is below, 10

 

Here is what the result table should look like:

Order IDorder_dateseller categoryPercentage of orders from category 1Bouns 
101.07.2023Acattergory 125%10
201.07.2023Acattergory 225%10
304.07.2023Bcattergory 1100%20
405.07.2023Ccattergory 20%10
507.07.2023Bcattergory 1100%20
607.07.2023Acattergory 225%10

 

 

Source data:

 

Order IDorder_dateseller category
101.07.2023Acattergory 1
201.07.2023Acattergory 2
304.07.2023Bcattergory 1
405.07.2023Ccattergory 2
507.07.2023Bcattergory 1
607.07.2023Acattergory 2
708.07.2023Ccattergory 1
815.08.2023Ccattergory 2
916.08.2023Ccattergory 1
1017.08.2023Ccattergory 2

 

I am asking for help because I cannot write these measures in such a way that they take into account the possibility of filtering by date and seller slicers.
 
1 REPLY 1
eliasayyy
Memorable Member
Memorable Member

please provide with more explaiantion this is not clear of what you want how is your percentage calculated? how is your orders calculated?

this is what i got but different from your reults

annonymous1999_0-1691650515921.png

 




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.