COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: tarunkrdas2013 on 17 Sep 2015 05:08:37 PM

Title: 2 depts selection of Value prompt Report shows The "set" node is not expected t
Post by: tarunkrdas2013 on 17 Sep 2015 05:08:37 PM
I have DMR report where when i select 2 depts like atached in screenshot ..My expression for selection of department  is

set([Hierarchical].[Company].[Location] -> ?p_Department?)

Report gives output  fine when i select only Location (All) or i select only United States or i select only Canada,but when i select the way i attached in screenshot error comes as

The "set" node is not expected to be a "set".
Title: Re: 2 depts selection of Value prompt Report shows The "set" node is not expected t
Post by: Francis aka khayman on 17 Sep 2015 09:11:23 PM
i am interested to see the correct solution as well. in the meantime how about if you do not use a set?

[Hierarchical].[Company].[Location] -> ?p_Department?

will the situation reverse?  i.e. selection in the screenshot ok; Location(All) returns an error

Title: Re: 2 depts selection of Value prompt Report shows The "set" node is not expected t
Post by: tarunkrdas2013 on 18 Sep 2015 12:02:11 PM
i changed the expression of Departments to [Hierarchical].[Company].[Location] -> ?p_Department? again got same error when i selected the department as mentioned above .
On other hand when i select Location(All) report shows output correctly
Title: Re: 2 depts selection of Value prompt Report shows The "set" node is not expected t
Post by: tarunkrdas2013 on 18 Sep 2015 06:56:08 PM
hey just to update any other person looking for  a solution to this ,i wrote  below expression and it worked

descendants(set([Hierarchical].[Company].[Location]-> ?p_Location?),0)