When the rows or columns of a Grid question are blank or messy this is generally due to the data not being set up correctly (see 3. Grid or Looped questions in How to Set Up Your SPSS File for Displayr for more information). There are several possible solutions to this:
Re-exporting the data file
Where the data file has been generated by 'hand' (i.e., by a DP professional rather than automatically created by an online data collection program), it is often appropriate to get the data file to be re-generated, drawing particular attention to the instructions for Looped questions and grids in the SPSS Data File Specifications. A particular benefit of this approach is that all the other solutions require some guesses to be made about the nature of an error, whereas this approach assigns the fixing of the problem to the person that has the most information at hand as to the true cause of the problem.
Manually entering the labels on the Outputs Tab
Right-click on blank categories in the Outputs Tab, select Rename and enter the correct labels.
Fixing the labels in the Variables and Questions tab
- Select all the variables in the question in the Variables and Questions tab, right-click and select Revert to Source.
- Manually alter the labels in the Variables and Questions tab. Where the grid is large it can be useful to copy and paste the labels into Excel, tidy them in Excel and then copy and paste back into Q (by right-clicking and selecting Paste Labels).
- Select all the variables, right-click and select Set Question.
Re-ordering variables
- Select all the variables in the question in the Variables and Questions tab, right-click and select Revert to Source.
- Click on the row numbers in Variables and Questions tab and manually move, or, select all the rows and use Sort by.
- Select all the variables, right-click and select Set Question.
Creating dummy variables
Where there are missing variables (e.g., because a specific attribute was not asked for a brand), a solution is to:
- Select all the variables in the question in the Variables and Questions tab, right-click and select Revert to Source.
- Right-click where you need to insert a new variable (i.e., a dummy variable).
- Select Insert Variable(s) > JavaScript Formula > Numeric.
- Enter in an Expression of NaN and press OK.
- Copy and paste the label from another cell and modify accordingly.
- Select all the variables, right-click and select Set Question.
Next
Tips, Trips and Troubleshooting for Maps
How to Troubleshoot Exporting Problems
How to Troubleshoot JavaScript Code in Q