Hello,
I'm working on an ad hoc report and when I select all of the items for selection an output I then filter out the selection values to generate more specific items I want to see. One of the items I have for selection when I select certain values it excludes everyone who doesn't have that value. How can I get the report to show all line items that have that value plus those who may not have it at all?
I have tried exluding certain values or including certain values but it seems to still only give me a few line items. When I don't use that selection value at all everyone shows up on the report. Some show up multiple times because they may have other items listed but I only want them to show up if they have lets say 0-2 of the 10 values I could choose from.
Any help with this would be greatly appreciated.
Elizabeth
Paul,
Seems like it's almost there but still won't give me the correct population. As soon as I remove the wage type field and hit output I get everyone regardless of the subtype I select.
I don't know if you can see in this screenshot but personnel # 711227 has two lines, one for NY Supp and one for Transit. I only wan to show the NY Supp line. I also want the report to include those that don't have the NY Supp such as personnel # 711256. All jobs listed as Interns & administrators don't receive the NY Supp so I still need them to show on the report.
Hi Elizabeth,
Ad Hoc Query will produce an output line for each valid record it encounters. So if a person has two of the selected wage types that are currently valid, the person would appear twice in the report.
As to selecting people without any of the wage types, you should use Set Operations. Activate in Ad Hoc via Extras --> Show Set Operations. Here you can define different groupings. "A", "B", A+B", "A-B" and "B-A". First, on the Selection tab, enter your selection values except for wage type. Select Hit List and enter that number just to the right in Set A. Then add wage type and enter your desired wage types. Select Hit List - this will give you all people with those wage types - enter into Set B.
Then on the Set Operations tab, you can define the "A-B" or all people without the wage types selected. You then output that list or select Transfer Resulting Set "to object set A". Then select "Union" to give you all persons with no wage types and those with your selected wage types. Transfer that to "reporting set" and "to Hit List". Return to the first tab to run your output.
Paul
Add a comment