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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
equlibrum52
Frequent Visitor

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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