Hello -
I would like to return a sum of sales for a particular sales property, for a particular month, but exclude 2 categories from the sales total. I can't seem to get the syntax correct for this. I've tried numerous variations of this:
Any suggestions?
Thanks
I would like to return a sum of sales for a particular sales property, for a particular month, but exclude 2 categories from the sales total. I can't seem to get the syntax correct for this. I've tried numerous variations of this:
Excel Formula:
=CUBEVALUE(
"ThisWorkbookDataModel",
"[Measures].[Sum of Sales]",
"[Sales].[Property].[foo]",
"[Calendar].[CurrentYM].[202306]",
"FILTER(NOT(AND([Sales].[Category].[ExcludeCategory1]),([Sales].[Category].[ExcludeCategory2])))"
)
Any suggestions?
Thanks