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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors