Issue connecting SPSS Modeler 18.3 & 18.4 to DB2WoC Databases - Null values rendered as the value in the previous record - spss-modeler

I am having an issue connecting SPSS Modeler 18.3 & 18.4 to DB2WoC Databases - Null values rendered as the value in the previous record.
For instance record 1 contains the values - 1,2012-12-12,<null>,"Strength"
record 2 contains the values - 2,<null>,17,"Bluebell"
record 3 contains the values - <null>,<null>,<null>,<null>
These are being rendered as :
record 1 - 1,2012-12-12,<null>,"Strength"
record 2 - 2,2012-12-12,17,"Bluebell"
record 3 - 2,2012-12-12,17,"Bluebell"
Any ideas how to solve this?
Expected results were:
record 1 - 1,2012-12-12,<null>,"Strength"
record 2 - 2,<null>,17,"Bluebell"
record 3 - <null>,<null>,<null>,<null>

Related

Is it possible to run multiple functions in one request

Newbie here with limited to no history with coding.
Attempting to build an email template and I want to know if it is possible to run multiple function in one request? I am providing some test data below to try and better explain what is needed
Custom Field 1 - Score_A - Value can be between 1 and 10 This will vary based on the customer being emailed)
Custom Field 2 - Score_B - Value can be between 1 and 10
Custom Field 3 - Score_C - Value can be between 1 and 10
Custom Field 4 - Score_D - Value can be between 1 and 10
I need the code to search across all four custom fields and if any of the values of these custom fields is more than 5 I want to the outcome to read "Good", if any of the vales of the custom field are below 5 I want the outcome to read "Bad". I do not want out outcome for each custom field, I just need 1 outcome for each email.
e.g. if
Score_A=6
Score_B=9
Score_C=10
Score_D=8
The outcome in the email should read "Good"
But if
Score_A=2
Score_B=9
Score_C=10
Score_D=8
The outcome should read "Bad"

Advanced Form creation - needed advice or suggestion

I have a dataset in MsAccess:
Fact Table - ChartReview:
ID EmployeeFK CategoryFK ObjectiveFK YesNoFK
1 22 1 1 0
2 11 1 2 1
3 11 2 3 1
4 22 3 6 2
5 22 2 5 0
6 22 2 4 1
Dimension Tables -
3_Employee:
ID EmployeeName
11 James Smith
22 John Doe
4_YesNo:
ID DescriptionYesNo
0 N/A
1 Yes
2 No
1_Category:
ID DescriptionCategory
1 Orientation
2 Individual
3 Progress
2_Objective:
ID CategoryFK DescriptionObjective
1 1 Object1
2 1 Object2
3 2 Object345
4 2 Object556
5 2 Object666
6 3 ObjectLast
Here is the Relations Model (colored dots show the appropriate relation):
My goal is to create a Form or (Form + SubForm)- where user will add data as following -
User will select the EmployeeName, and then - will proceed with the Category selection.
Then - will enter the Objective values (Yes, No or N/A) according to each Category associated with its Objective.
I created the Main Form (data source - ChartReview table):
and the Sub Form (data source - dimensions - Category, Objective tables):
But - my problem - I don't know how to connect MainForm + SubForm...
(so the user would enter data into Main, and then would be transferred to a Sub and will enter Yes/No/N/A for each Objective)
Also, I need my Yes/No/N/A values would be bound to each Objective, while now, unfortunately they're bound to only the 1st Objective...
And the last, I am not even sure the user will actually be able to fill out my SubForm, as it's created out of the Dimensions.
When I tried to enter or to change the info in the SubForm - the following error appears:
Any advice or suggestions - welcome !!!
Open the form in design view.
Click on the subform to select it.
If you can't see the properties pane, Right click on the subform and choose properties.
On the data tab there are the fields that you need to fill in.
Link Master Fields and Link Child Fields.
To start, put 3_Employee.ID in the "link Master fields" box
and ChartReview.EmployeeFK in the "Link Child Fields" box.
Manually enter valid data to test that the employee record works, then add the other links once this works.

Tableau -Calculated field for matching values based on criteria in a different column

I am trying to create a calculated field based on three conditions .
I have two columns names " source system names" which has only two values 302 and 202 only and other column name "unique ID have different numerical values .
I want to create a calculated field which will display the data as shown in "calculated field display " column. I need some help to write a logic on this .I have not done something like this before in tableau .Can someone help me out .I have around 0.5 million rows so need a logic that would work for this size of data .
Please refer attach image for a clear picture of what iam doing .
202 RECORD ONLY - when unique ID does not exists in row having source system as 302 .(example row 1,3 and 4)
302 RECORD ONLY - When unique ID does not exists in row having source system as 202.(example row 9,11 and 12)
EXISTS in both 302 and 202 - when unique ID is same for source system names 302 and 202 .(2 and 10 , 5 and 8 and 6 and 7)
Kindly help me to create a calculated field with this logic .
I tried CASE and IF function ,but i was not able to do it .
for easy understanding refer the 4th column in the attached imageenter image description here
If the 'Source System Names' has only 2 values you could create the following calculations to do what you want (assuming all the fields are strings, if they're integers this will still work with some simple changes):
Max: Source System Name
{FIXED [Unique ID]: MAX([Source System Names])}
Min: Source System Name
{FIXED [Unique ID]: MIN([Source System Names])}
Calculated Field Display
IF [Min: Source System Name] != [Max: Source System Name]
THEN 'Exists in Both 302 and 202'
ELSEIF [Max: Source System Name] = '202'
THEN 'Exists in 202'
ELSEIF [Max: Source System Name] = '302'
THEN 'Exists in 302'
ELSE
NULL
END
Hopefully that helps!

Transform CSV File and Load into PostgreSQL

My CSV data set has a variable number of columns due to certain groups of fields having a different number of sets based on how I query the data (timeframe).
For example, I have:
Field 1 Field 2 Field 3 [Field 4.1.1 Field 4.1.2 Field 4.1.3 Field 4.2.1 Field 4.2.2 Field 4.2.3]
My new PostgreSQL tables contain:
- **Table 1**
-------------
- Field 1 Field 2 Field 3
- **Table 2**
-------------
- Field 4.X.1 Field 4.X.2 Field 4.X.3
where each X is a new row in table 2.
Recommendations on ETL or other programs to automate this process?

To show blank in the 1st row (if it is NULL value) in BIRT Reports

I created a Report using BIRT Report Design in Eclipse Java EE IDE(Juno Release). In that Report, For the single row it have multiple values for the corresponding one column(I used LISTAGG() oracle function to map that).
(i.e.) Result column have multiple values in the below database table output :
No Name Result Mark
1 John X 32
XX
XXX
2 Joe X 56
XX
XX
XXX
3 Andrew 34
XXX
XX
XXXX
… It have both NULL and NOT NULL values in it.
"If the NULL values are in the middle means its showing the results properly in the Report"
Sample Result am getting in Report output for Joe (.pdf form)
No Name Result Mark
2 Joe X 56
XX
XX
XXX
Here the problem is, “If First record has a NULL means it is not showing properly in the Report, instead of that NOT NULL value will print in the front and so on…”
Sample Result am getting in Report output for Andrew (.pdf form)
No Name Result Mark
3 Andrew XXX 34
XX
XXXX
But we have TWO NULL values present in the Front of Result column for Andrew (As you see sample database table output above)…
Is there any option to show blank in the first row(if it is a null column) for the particular row in the Birt report tool ?
Kindly Help me to Solve this issue… Thank you!