July 22, 2019 at 7:04 pm
I have 2 Data Sets. One that shows The peoples names and when they have turned in there field logs. Then I have a data set that is just a list of names. How can i compare the two data sets to only show the names of the employees that have not turned in a field log.
Edit: Ive tried using this but it does not work. It will bring up a name that has turned it in and will only bring up one name.
=IIF(Format(First(Fields!FirstName.Value, "DataSet2") & " " & First(Fields!LastName.Value, "DataSet2")) = Format(First(Fields!FirstName.Value, "DataSet1") & " " & First(Fields!LastName.Value, "DataSet1")), Nothing, Format(First(Fields!FirstName.Value, "DataSet1") & " " & First(Fields!LastName.Value, "DataSet1")))
July 22, 2019 at 9:34 pm
This sounds like homework. You're better off attempting this yourself.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
July 23, 2019 at 11:09 am
Yes I have for days. I don't think it is possible with report builder yet.
July 23, 2019 at 6:18 pm
I'd suggest doing the set based work in your query rather than through expressions in the report. I can think of 3 ways to do it offhand, though I'd like to see what query you come up with first.
July 23, 2019 at 6:50 pm
Ill give it a try, But i really doubt i can get this Ive never need to compare using a first and last name to another first and last name. and they would have to be formatted together because a lot of people have the same name.
July 23, 2019 at 6:54 pm
Also they have to be in two different data sets so it wont just give me the same name again. if you have any ideas where to start that would be great
July 23, 2019 at 7:14 pm
I mean even if i could get it to a full list of names with when they submitted them but also have the names that havent submitted anything to show up. But i also need to keep the parameters to choose the dates i need.
July 23, 2019 at 8:50 pm
Since we don't know what the 2 datasets look like it would be difficult for us to tell you where to start other than high level generic answers. I'd start by looking at constructs such as:
NOT IN https://docs.microsoft.com/en-us/sql/t-sql/language-elements/in-transact-sql?view=sql-server-2017
LEFT JOIN https://www.sqlteam.com/articles/writing-outer-joins-in-t-sql
July 24, 2019 at 3:20 pm
Also they have to be in two different data sets so it wont just give me the same name again. if you have any ideas where to start that would be great
No, they don't. That's what grouping is for.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
July 25, 2019 at 12:21 pm
Okay. Im sorry i dont know much about the query. Still a newbie. What would you need to help me
July 25, 2019 at 2:31 pm
You need to help you. Read the articles Chris posted. Create some tables, try out the different options - LEFT JOIN, EXCEPT, NOT IN.
July 25, 2019 at 2:32 pm
Im doing that right now Thank you
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply