COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: pooja on 13 Jan 2014 09:44:52 AM

Title: Prompt selection help
Post by: pooja on 13 Jan 2014 09:44:52 AM
Hi there.
I have a report with 2-prompts- 1) Company_location & 2)Currency.
We have around 40 different currencies for different locations around the world. Example USA- 'USD', Dublin - 'EUR', UK - 'GBP'.........and so on.

Now how can I make the prompt selection like- If I select UK_Company then 'Currency' prompt should only display 'GBP' AND If I select USA_Company then 'Currency' prompt only display 'USD'....and so on.

Much appreciate you help on this.

P
Title: Re: Prompt selection help
Post by: MFGF on 13 Jan 2014 10:09:45 AM
Quote from: pooja on 13 Jan 2014 09:44:52 AM
Hi there.
I have a report with 2-prompts- 1) Company_location & 2)Currency.
We have around 40 different currencies for different locations around the world. Example USA- 'USD', Dublin - 'EUR', UK - 'GBP'.........and so on.

Now how can I make the prompt selection like- If I select UK_Company then 'Currency' prompt should only display 'GBP' AND If I select USA_Company then 'Currency' prompt only display 'USD'....and so on.

Much appreciate you help on this.

P

Hi Pooja,

Where in the data is the link between company location and currency? If you have this in a query subject somewhere you can add a filter to the query driving the Currency prompt to retrieve only currencies for the chosen company location parameter value.

Cheers!

MF.
Title: Re: Prompt selection help
Post by: pooja on 13 Jan 2014 10:18:36 AM
Thank you MF,

These two company location and currency are dimension. We are using Cube for this report.
Title: Re: Prompt selection help
Post by: MFGF on 13 Jan 2014 10:24:14 AM
Are they in the same dimension? If so, is currency an attribute of company location or a child of company location or something different?

If they are in different dimensions how does the data determine which currencies belong to which locations?

Can you advise - once we know how the dimensions are structures we will hopefully be able to suggest the best solution.

Cheers!

MF.
Title: Re: Prompt selection help
Post by: pooja on 13 Jan 2014 10:33:23 AM
so much for quick response.

these two are coming from two different dimensions.
Title: Re: Prompt selection help
Post by: MFGF on 13 Jan 2014 10:37:12 AM
Quote from: pooja on 13 Jan 2014 10:33:23 AM
so much for quick response.

these two are coming from two different dimensions.

Ok - so how (in the data) can your report determine which currencies relate to which locations? If they are in separate dimensions it sounds like there is no inherent link?

MF.
Title: Re: Prompt selection help
Post by: pooja on 13 Jan 2014 11:06:46 AM
they do not have any inherent link.
Title: Re: Prompt selection help
Post by: MFGF on 13 Jan 2014 11:47:53 AM
Quote from: pooja on 13 Jan 2014 11:06:46 AM
they do not have any inherent link.

In that case I have a question for you, Pooja my old friend...

How can your report display only the "relevant" currency for each location when you have nothing in the data that links currencies to locations?

How can it know?

Somehow, somewhere you will need this link if you want to do what you are requesting. Can location perhaps be added as an attribute of the Currency level so you can filter on it with a filter() function? Even if you could do this, how would you handle currencies belonging to multiple locations?

Oh - that was more than one question - sorry! :)

Cheers!

MF.
Title: Re: Prompt selection help
Post by: pooja on 14 Jan 2014 09:41:33 AM
OK..here is the updates...

Actually these both 1)Company_location & 2)Currency under same dimension. see attachment.
Much appreciate you help on this.
Title: Re: Prompt selection help
Post by: Francis aka khayman on 15 Jan 2014 01:26:24 AM
you changed your package or you just made a mistake in your last statement?

Quote from: pooja on 13 Jan 2014 11:06:46 AM
they do not have any inherent link.