Forum Discussion
Using VALUES vs SUM to calculate commission
- 4 years ago
This measure works:
Commission = SUMX(SalesRep, [Profit]* [% Commission])where
Profit = SUM (Sales [Profit])
and
% Commission = SUM( SalesRep [% Commission])
Or to make it simple
Commission = SUMX (SalesRep, CALCULATE(SUM(Sales [Profit])) * CALCULATE(SUM(SalesRep[% Commission]))
and
% Commission = IF(ISINSCOPE(SalesRep[Names]), SUM(SalesRep[% Commission]), DIVIDE([Commission], [Profit]))
I've attached the sample PBIX file
This measure works:
Commission = SUMX(SalesRep, [Profit]* [% Commission])
where
Profit = SUM (Sales [Profit])
and
% Commission = SUM( SalesRep [% Commission])
Or to make it simple
Commission = SUMX (SalesRep, CALCULATE(SUM(Sales [Profit])) * CALCULATE(SUM(SalesRep[% Commission]))
and
% Commission = IF(ISINSCOPE(SalesRep[Names]), SUM(SalesRep[% Commission]), DIVIDE([Commission], [Profit]))
I've attached the sample PBIX file
Thanks Paul, and apologies for the delay...new job!
The ISINSCOPE worked a treat and loved how you seperate the measures in a new table!
- PaulDBrown4 years ago
Community Champion
New job hey? Congratulations!!