|
发表于 2014-6-1 11:01:56
|
显示全部楼层
Product line / Product Category / "Product subcat + product"/ product
e.g. product should be A0001, A0002, B0001, and there are three product subcats: MEN, WOMEN, BABY. therefore, the 3rd level ("Product subcat + product") should be: "MEN - A0001", "MEN - A0002", "BABY - A0003". "MEN - B0001"
There are dropdown boxes product category (e.g. prodcat A), and product subcat (e.g. MEN, WOMEN, BABY, but NOT "MEN - A0001", NOR "MEN - A0002"). Therefore, I need to have MDX to implement AND/OR situation if a situation that user select "prodcat A" in Product Category and select "MEN" in product subcat
================
p_ProdCat = 'prodcat A';
p_prodsubcat = 'prodsubcat A1';
p_subsetName = 'temp_subset';
SubsetCreatebyMDX(p_subsetName, '{DISTINCT(TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Product].[' | p_ProdCat | ']}, ALL, RECURSIVE)}, 0))}'); |
|