COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: JP1981 on 20 Oct 2014 11:04:11 AM

Title: Calculations for counting a measure across different dimensions
Post by: JP1981 on 20 Oct 2014 11:04:11 AM
Hi.

i need some guidance, getting back into cognos after many years. i have a report which i am working on. It requires me to create a few calculations based on one measure from the fact and using other dimensions all is one query
First is - count a measure( which is a number field) based on a specific product(for example - product line = A)
Second - count a measure( which is a number field) based on a specific Status type(for example - Status type =  X)

product is a diff dimension, Status is a different dimension. i am getting the measure(number field) from the fact,

i will be show this breakdown by Region, region dimension.


                  Product A     Status X
US                  10                15
America          35                  5
Asia                 14                 45


i thought this would be simple, and i can just do the counts by doing a simple case or if statement but i am not able to combine the two calculations based on different dimensions in one query. it works when i calculate one calculation for product in one query and one calculation for status in a different query. I need to show them side by side in one report?

please advise some approaches i can take?   and what options do i have.  in this something i may need to update my model and create something there?  would appreciate any help.

thanks,
JP
Title: Re: Calculations for counting a measure across different dimensions
Post by: bdbits on 22 Oct 2014 02:49:16 PM
If you get the correct values with separate queries, you could union the two queries within Report Studio.

I should think counts from a single fact table would work without resorting to in-report unions, but it is possible something in the way the data is modeled prevents it from working properly.
Title: Re: Calculations for counting a measure across different dimensions
Post by: MFGF on 23 Oct 2014 10:09:45 AM
Hi,

Are you using a relational or a dimensional package?

MF.