Forum Discussion
Anonymous
5 years agoNot applicable
Remove partial filter context in Calculated column
Hi Folks, I want to build a data model as shown below: I want a calculated column "Revenue ignoring country" to show total revenue for each supplier(ignoring country-wise split). How can th...
- 5 years ago
Hi,
Write this calculated column formula (not measure)
=calculate(sum(data[revenue]),filter(data,data[supplier]=earlier(data[supplier])))
Hope this helps.
V-lianl-msft
5 years agoCommunity Support
Hi Anonymous ,
Try:
CALCULATE( Sum(Tablename[Revenue]), ALLEXCEPT(Tablename, Tablename[Country] ) )
You could use the ALLEXCEPT function instead of the ALL function
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.