COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: naqsa on 04 Jun 2015 07:45:24 PM

Title: Concur - Find reports with just one specific exp type
Post by: naqsa on 04 Jun 2015 07:45:24 PM
Hi All,
I'm trying to identify all expense reports that contain just 1 specific expense type. If I filter by the expense type i.e. airfare, it shows me all reports that have airfare and may have additional expenses as well. I need to identify reports that don't have any expense other than airfare. It can have multiple lines for airfare but cannot have any lines for other expense types. 
Thanks



Title: Re: Concur - Find reports with just one specific exp type
Post by: Michael75 on 05 Jun 2015 02:02:15 AM
You need a report with three queries.
Q1 has column Document ID, and filter Expense Type = airfare
Q2 has column Document ID, and filter Expense Type <> airfare
Q3 has all the columns needed by your report, and two filters:
- Document ID in (Q1.Document ID)
- Document ID not in (Q2.Document ID)