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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

How do I calculate sales comissions per sales rep per month?

My dataset looks something like this: 

 

MonthSales RepQuantity Sold
JanuaryRamon50
JanuaryRamon70
FebruaryJennifer30

 

If a sales rep sells more than 100 units per month (like Ramon in the above example), that sales rep gets $1,000 in comission. How do I calculate a measure/calculated column for this comission? 

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

you can do it like this:

 

10-07-_2021_23-26-44.png

 

Sum of Quantity sold = SUM('Table'[Quantity Sold])

Comission = IF([Sum of Quantity sold] > 100 , 1000 , 0)

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

2 REPLIES 2
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

you can do it like this:

 

10-07-_2021_23-26-44.png

 

Sum of Quantity sold = SUM('Table'[Quantity Sold])

Comission = IF([Sum of Quantity sold] > 100 , 1000 , 0)

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

aj1973
Community Champion
Community Champion

Hi @Anonymous 

You can add a measure

Commission = 

Var _Q = SELECTEDVALUE('Table'[Quantity Sold])

return

IF(_Q >= 100 , "$ 1,000" , "N/A")

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.