COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: erics on 30 May 2016 01:28:28 PM

Title: Need to suppress records from list, but include them in the subtotals
Post by: erics on 30 May 2016 01:28:28 PM
So, I just had a really weird request asked of me.
I have a report with all the sales of salesppl. I was asked to create an abridged version that contains only sales over 70K. However, the subtotals and totals should still contain all the records.
No idea how to do this, has anyone tried this one yet?

Eric
Title: Re: Need to suppress records from list, but include them in the subtotals
Post by: qvixote on 30 May 2016 03:10:59 PM
I think you should do it using javascript, using jquery it would be possible.
Title: Re: Need to suppress records from list, but include them in the subtotals
Post by: Michael75 on 31 May 2016 01:04:10 AM
You need two queries, one of which has the detail filter Amount > 70K.

Use the filtered query to populate your main list. Then drag another list with only the amount column (or maybe a singleton would work) under that, and populate it from the unfiltered list.

Use sizing properties etc. to make the result look like a single list.
Title: Re: Need to suppress records from list, but include them in the subtotals
Post by: erics on 06 Jun 2016 10:58:31 AM
So, I copied my query, and on the second one added a filter where amount >= 70000
I then unlocked the report, deleted the subtotals. Then put in the value from the subquery (unfiltered amount)
Now, the report doesn't run. It starts and freezes on me.
Any advice?
Title: Re: Need to suppress records from list, but include them in the subtotals
Post by: IzzyB on 21 Jun 2016 04:00:38 PM
Create a conditional style on the rows that sets 'box type' to none when the amount you're interested in is <70000.

The list will still run exactly the same, and the totals will be correct.