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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
TAZ95
New Member

calculating the sum of a certain column that satisfy a certain condition

Hello, I am trying calculate the commission of a certain trainer based on the number of sessions the trainer does.

Each session belongs to a pack and packs are in two type. Each session the trainer get a base commission of 85 or 95 depending on the type of pack it belongs to. However, this base commission is calculated only after 15 sessions. for example ( assuming the type of session is the same and base commission is 85, total session is 20. The trainer will get only 85+85+85+85+85). The date is split into two main tables. table .JPG

I have calculated a column (base commission) that will able to identify if the commission is 85 for EACH PACK.

the scond Table have the information about the trainers and pack the session belongs to

 

Table 2.JPG

 

Eventually, I am going to filter trainer information. once I filter a certain trainer from table 2, the packs will filter in table 1. Therefour ill be able to find the commission related to that trainer. But how to calculate the commission without considering the first 15 sessions. 

I hope its clear.

Thanks

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors