Forum Discussion

DamienDhaene's avatar
DamienDhaene
Regular Visitor
7 years ago
Solved

Calculate Measure using a relationship

Hi Community,

 

I need some help solving the following question.

 

I have a table containing all contracts a team is responsible for and the % of Sales their commission is calculated on.

 

TeamContract%
AC.01100%
AC.02100%
AC.0350%
AC.04100%
BC.0150%
BC.05100%
BC.03100%
BC.06100%
BC.07100%

 

Next to that I have a contract table containing sales per Contract

 

Sales Table
ContractSales
C.01100
C.02150
C.0370
C.0480
C.05180
C.06120
C.0750

 

Sales over all contracts = 750

 

I want to create a measure that shows the Commission Sales per Team (when a team is selected) but when nothing is selected doesn't show more then total sales of all contracts = 750.

 

  Sales x %
AC.01100
AC.02150
AC.0335
AC.0480
BC.0150
BC.05180
BC.0370
BC.06120
BC.0750

 

Because contracts are not unique in the table above total Sales would be 835 in this case.

 

Relationship between the two tables is on the contract.

 

Tx

4 Replies