Forum Discussion
Giada90
Helper IV
2 years agocalculation with aggregated and not aggregated fields
Hi, I have an excel like this: I need to calcolate the margin for each person and I need to make sales - sum(costs), the result must me something like this: How can I ca...
- 2 years ago
Giada90 , I created calculated colmn using
TotalCost =CALCULATE(SUM('Table'[Cost]),ALLEXCEPT('Table', 'Table'[Person]))And one for subtractionMargin = 'Table'[Sales]-'Table'[TotalCost]Please find the attached PBIX
Giada90
Helper IV
2 years agobhanu_gautam I tried like this
Colonna = Foglio1[sales]-sum(Foglio1[cost])
but it doesn't work
any suggestion?
thanks
- bhanu_gautam2 years ago
Super User
Giada90 , I created calculated colmn using
TotalCost =CALCULATE(SUM('Table'[Cost]),ALLEXCEPT('Table', 'Table'[Person]))And one for subtractionMargin = 'Table'[Sales]-'Table'[TotalCost]Please find the attached PBIX- Giada902 years ago
Helper IV
thanks!!