SPSS changing count totals - data-analysis

I am running crosstabs from a survey in SPSS - Layered 2 independent variables on one question (the dependent variable). There are 1000 responses total, but whenever I run the crosstab it returns the data with 1001 or 999 or 1002 responses total. I have tried using both the Custom Tables feature and the Descriptive Crosstab feature. Neither will give me the correct totals, and all of the counts are just barely off. Is this a common problem? How do I fix it? Thanks in advance.

Related

Access how do i create a report that shows how many of same including if only 1

I have a db of some 20k error code entries, and i would like to generate a report that show
how many of each is stored.
The user creates a entry when working on a specific error and they get it from another table
example
I tried creating Queries with the selected data for the report and then using the report wizard to help.
but the SUM function add's the codes together, and the count records counts ALL together.
I am looking to create a report that i group by "Area" which is working fine.
and under each area i den count "example from the screenshot" like this
Error: - >
Do you have any idea's or is there report software that can help me achieve this?
EDIT:
One solution is i found is -
https://support.microsoft.com/en-us/office/count-data-by-using-a-query-b84cdfd8-07ba-49a7-b067-e1024ccfcca8
Count records in a group or category
But then the problem is i am missing a column with the actual reference of the AlarmNo because now i am counting them, and i am still insterested in getting the Original number.
AlarmNo - Count of these.
Sorry i cannot share data or tables not my data.
Allright i found out what i was doing wrong, it was my sql query.
I changed the queries for each area like this.
This one for England, and it now works when i generate a report.
What i was missing was the "Count" AS CountOfAlarmCode.
Thank you for looking anyway.
´´SELECT Data2020.[Country], Data2020.[Site], Data2020.[AlarmCode], Count(Data2020.AlarmCode) AS CountOfAlarmCode, Data2020.[AlarmText]
FROM Data2020
GROUP BY Data2020.[Country], Data2020.[Site], Data2020.[AlarmCode], Data2020.[AlarmText]
HAVING (((Data2020.[Country])="England"));´´

Two Dataset without joining them in SSRS

I have two Datasets in my SSRS report and both dataset coming from different database. and there impossible to join them
Example not real Data .....
so what im tring to do is (Dataset1) total number of Visiter divided by (Dataset2) Total number of Cars * 1000 (sectors) row group by every month and Year.
for example (not real) if we have 24 Visitors and 2063 Cars *1000 so we get AVG of 1000 Sectors 11.63
Is there any funcation in SSRS where i solve this problem IN Excel you know i easy but I need to create report in SSRS please any help would safe me. Thanks
enter image description here
The lookup function in SSRS allows you to get fields from a different dataset based on matching criteria.
See here for more information: https://msdn.microsoft.com/en-GB/library/ee210531.aspx

SSRS Count Fields in DataSet for Map Report

So I have these 2 lists in SharePoint i.e. Producer & Movies.
Now I need to create a single dataset with information about a producer (Name & Nationality) and a count of his/her movies. So an example record from the dataset should look like this for example: Steven Spielberg | USA | 20
I have been looking for way to do this but I couldn't find anything. Everything I tried resulted in an error on the report at runtime. Like when I tried to use a LookUpSet-function that should have worked if it were allowed to use a LookUpSet-function in a DataSet.
Does anyone know how I would be able to achieve something like this?
Sorry if I'm not clear with the title but I didn't know how else to describe it, so any suggestions are appreciated as well. :)
Kind regards
Gravinco
By default, we can only get values from one list in one query, which means we can only have one list in one dataset. Even you can create a calculated fields to return the related movies of the producer, it's still not supported to use aggregation function in it to get the count value. So for your requirement, You have to create two datasets and do the aggregation on producer group level in table.

Can't figure how to use lookup() in SSRS 2008 R2

In the report I am building I have 2 data sets: one gives me, per user, per day, the total amount in that status; the other one gives me, per user, how many days in the date range the user actually showed up at work. Each of these data sets comes from its respective stored procedure. See screenshot.
The problem I have is that I need to report not the total time in status per user, but the average per day. So in the screenshot you can see that one user has 5 entries for 5 days worked and the other one has 3 entries for 4 days worked. simply because in one of those 4 days he didn't had that status at all.
I tried adding a calculated field to my "status" data set by using the lookup() function but it kept on giving me errors, which makes me think I don't quite know how to use it.
I also tried using group variables, and I was able to define it under group properties, but it never come up as an option to be used when writing an expression.
Any ideas using lookup(), variables or otherwise?
You're on the right track. Sounds like the Lookup function is exactly what you want.
Instead of trying to add the calculated field to the dataset, try putting it directly in the report item where you want this displayed.
Something along these lines should work:
=SUM(Fields!Available.Value)
/ Lookup(Fields!UserId.Value, Fields!UserId.Value, Fields!Days.Value , "NameOfDaysDataset")
If this isn't working, please post a few more details of your data sets, field names, and where you need this to appear.

Ms access conditional sum

Please assist... to get to the point can Ms access conditional sum like Ms excel.
e.g
SUMIF(range,criteria,[sum_range]) \ SUMIF(O2:AJ6,"<>99",Sheet4!A1:V1)
So the range is the number of columns for a record and the [sum_range] is a reference.
Can this equation be achieved with Ms Access
Can this be done for multiple field?
i have created an ms access database for Quality department that has questions, weights and options.
The problem is that... the assessor will capture details of the call using three options (Yes, No and N/A) Yes = different weights (1,2,4,or 10), No = 0 and N/A = 99. With that being said i need to calculate the total assessment sheet score based on the yes, no and exclude the not applicable questions. the assessment sheet has 24 question with different weights.
The total assessment score is 100 and depended on the N/A options selected, the weight of the assessment will decrease and bring about a new total based on the yes and no that were selected.
Is this possible on access?
I think you need to get a good book or tutorial about how a database like Access works. It is obvious that you come from the spreadsheet world and you will have a hard time if you don't wrap your head around the basics of databases and the differences to Excel.
To answer your question:
You just need a query where you add conditions (or a WHERE-Clause in the SQL view).
Example:
SELECT SUM(Fieldname) FROM Tablename WHERE Fieldname2="xy"
The answer that i was looking for is IIF statement
Solution below
2: IIf([Q2]='Yes',1,IIf([Q2]='No',0))
For the question that i have i can convert to be a specific number and then can i have all the results and create calculation.