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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.