Forum Discussion
jeremiels
9 years agoFrequent Visitor
Dynamic Column calculation
Hello, I want to add a column in my database who sums the total revenue for each line of business. Region Entity Turnover A 1 ...
- 9 years ago
Please use the DAX below to achieve your requirement.
RegionTurnover = CALCULATE(SUM(Table1[Turnover]),ALLEXCEPT(Table1,Table1[Region]))
ALLEXCEPT removes all context filters in the table except filters that have been applied to the specified columns.
https://msdn.microsoft.com/en-us/library/ee634795.aspxRegards,
Charlie Liao
v-caliao-msft
9 years agoMicrosoft Employee
Please use the DAX below to achieve your requirement.
RegionTurnover = CALCULATE(SUM(Table1[Turnover]),ALLEXCEPT(Table1,Table1[Region]))
ALLEXCEPT removes all context filters in the table except filters that have been applied to the specified columns.
https://msdn.microsoft.com/en-us/library/ee634795.aspx
Regards,
Charlie Liao