excel - OLAP cube Member Name instead of ID to filter Pivot -
i have pivot table based of olap cube, , i'd filter 1 of fields based on value of cell. filter works when use id number, not when use name, wonder if have wrong in syntax.
this works:
activesheet.pivottables("sales").pivotfields("[buying].[mch].[mch3]"). _ currentpagename = "[buying].[mch].[mch3].&[69]"
but doesn't
activesheet.pivottables("sales").pivotfields("[buying].[mch].[mch3]"). _ currentpagename = "[buying].[mch].[mch3].[l womenswear]"
even though id l womenswear 69. i'd version of this
activesheet.pivottables("sales").pivotfields("[buying].[mch].[mch3]"). _ currentpagename = "[buying].[mch].[mch3].[x]"
where x cell write l womenswear, or department. can work ids if necessary, simplify if use names.
Comments
Post a Comment