MDX - Activeform vs Subset Editor results
Posted: Tue Aug 11, 2015 7:26 am
Hi there,
I'm scratching my head over some MDX that I'm trying to use in an activeform. If I copy the MDX string and paste it into the subset editor I get the expected results, but using it in an activeform leaves project codes that should be excluded.
Here's the (fairly long) MXD statement built from a series of subn's etc:
Basically what it's meant to do is only pick up project codes where a rule driven flag is set for that month (PMR Required) and the status hasn't been preloaded with a string containing Excused. Which as said works fine in the subset editor, but in the activeform those excused jobs are still in the list of projects.
Note all the jobs with the PRM required flag are listed, so it seems like the INSTR test is being applied, but giving the wrong result. And yes, I realise this is an undocumented "feature", but I'm not sure if there's an alternate way to do this?
Any clues as to the different behaviour?
Mike
I'm scratching my head over some MDX that I'm trying to use in an activeform. If I copy the MDX string and paste it into the subset editor I get the expected results, but using it in an activeform leaves project codes that should be excluded.
Here's the (fairly long) MXD statement built from a series of subn's etc:
Code: Select all
{FILTER({TM1FILTERBYLEVEL( {TM1SUBSETALL( [Project] )}, 0)},[Project Rep].([Version].[Day 3],[Fin Year].[2016],[Period].[Jul],[Company].[AINZL],[Branch].[010],[Currency].[NZD],[ProjectRep Measure].[PMR Required])= 1 AND INSTR( [Project Rep].([Version].[Day 3],[Fin Year].[2016],[Period].[Jul],[Company].[AINZL],[Branch].[010],[Currency].[NZD],[ProjectRep Measure].[PMR Status]), "Excuse")= 0 )}
Note all the jobs with the PRM required flag are listed, so it seems like the INSTR test is being applied, but giving the wrong result. And yes, I realise this is an undocumented "feature", but I'm not sure if there's an alternate way to do this?
Any clues as to the different behaviour?
Mike