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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Super User
Super User

Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors