Page 1 of 1

mdx returning incorrect results

Posted: Thu Jul 26, 2018 7:52 pm
by Analytics123
Hi I am using below mdx to get a list of customers whose grade is D and and type is not 'DST1' from region 1

{Filter({TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER({[Customers SoldTo Only].[All Regions].[Region - 001]}, ALL, RECURSIVE )}, 0)},([AR HISTORY].([AR Measures].[Letter Grade],TM1Member( [Months].[Cognos Current Month Reporting].Item(0), [Months]))@='D') AND ([Customers SoldTo Only].[Type] @<> 'DST1'))}

Cube name is AR History. THere are more dimensions but I am looking only on month and letter grade.

Results not giving accounts that pass this condition.

Do I need specify values for mdx for all dimensions in the cube.

Re: mdx returning incorrect results

Posted: Thu Jul 26, 2018 8:01 pm
by Wim Gielis
Analytics123 wrote: Thu Jul 26, 2018 7:52 pm Do I need specify values for mdx for all dimensions in the cube.
Yes. Or, live with the fact that elements could be taken which you don't want.
For instance, element with index 1 in the dimension. So I would use values for the other dimensions too.