Forum Discussion
Pissi2019
May 03, 2022Copper Contributor
Help power pivot to exclude a value
I use power pivot and I created a measure for total sales To calculate the sales on each seller I use this measure with reference to a cube member and can't find problems. I wonder if it is possible ...
SergeiBaklan
May 03, 2022Diamond Contributor
For such sample model
we may use
=CUBEVALUE(
"ThisWorkbookDataModel",
"[Measures].[Sales]",
CUBESET("ThisWorkbookDataModel",
"EXCEPT(
[tblSales].[Seller].[All].children,
[tblSales].[Seller].[Tony] )"
)
)Pissi2019
May 04, 2022Copper Contributor
thanks for your help if I have not misunderstood, there is the possibility to simply write a cube member with negative value -tony to have the same result? I misunderstood ?
- SergeiBaklanMay 05, 2022Diamond Contributor
I'm not sure, didn't use such tuple. Here logic is straightforward - you get measure value from the set of all members except something.