COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: cognos05 on 26 Dec 2019 02:11:19 PM

Title: Dimensional Reporting Prompt question
Post by: cognos05 on 26 Dec 2019 02:11:19 PM
Hi ,

I have a requirement where i have like 1000's of customers in a dimension and there are only 3 customers belonging to a seperate grouping.

SO i have to have like a prompt which has values like 'All Customers' and other value saying 'CustomGroupedCustomer'

So when ever they select All Customers I have to slice on 'ALL Customers' and CustomGroupedCustomer had to slice on these 3 customers .

How do I go about achieving this .


Shoudl this be a static prompt with two values and in the query slicer i write an if else on prompt value and then do the slicing.

How do I do a slicing to select three customers .

Thanks,
Title: Re: Dimensional Reporting Prompt question
Post by: cognos05 on 26 Dec 2019 02:19:48 PM
I did add a static prompt with 2 values  and then defaulted to all customers and then  in the slicer i did this

if(?Parameter1?='All Customers')
Then
([All Customers])
Else
(Total(CurrentMeasure within set set([cust345],[Cust346],[Cust347])))


Just wanted to confirm with you guys if this is the right approach .


Would also like to know if there is another approach where I could

Create a custom group called CustomgroupCustomer which groups 3 customers in to one member and then i iwll have my parent all customer node , then i will supply these 2 to a prompt and then slice accordingly.

how will this customgroupcustomer be created. As a set or a member ?

Thanks,
Title: Re: Dimensional Reporting Prompt question
Post by: Andrei I on 29 Dec 2019 08:37:39 AM
What is your source? DMR or cube?
Title: Re: Dimensional Reporting Prompt question
Post by: cognos05 on 29 Dec 2019 05:46:30 PM
Cube.
Title: Re: Dimensional Reporting Prompt question
Post by: Andrei I on 30 Dec 2019 06:01:38 AM
In my opinion any common elements for multiple reports should be implemented as shared items (data items in the model, data in the datasource, layout components).
In your case you could create an alternative hierarchy with a new parent member containing 3 required children( similar to PP transformer implementation of period-to-date hierarchy).

Title: Re: Dimensional Reporting Prompt question
Post by: Francis aka khayman on 30 Dec 2019 09:35:23 AM
CustomGroupedCustomer = except([All Customers], set([cust345],[Cust346],[Cust347]))
ThreeCustomGroupedCustomer = except([All Customers], [CustomGroupedCustomer])
Title: Re: Dimensional Reporting Prompt question
Post by: cognos05 on 30 Dec 2019 03:08:33 PM
Thanks