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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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