Problem Note 67009: The error "Type Mismatch..." occurs when you create a calculated item in SAS® Visual Analytics
When creating a calculated item that uses the IF/ELSE operator and the IN operator, you might see an error similar to the following:
Type mismatch: expected type at this location is Character, type of item being applied is Numeric

The error prevents you from being able to click OK to create the item.
To work around this issue, click the Text button, and then click the Visual button. After that, you can successfully create the calculated item.
Operating System and Release Information
| SAS System | SAS Visual Analytics (on SAS Viya) | Microsoft® Windows® for x64 | 2020.1 | 2020.1.4 | Viya | Viya |
| Linux for x64 | 2020.1 | 2020.1.4 | Viya | Viya |
| Cloud Foundry | 2020.1 | 2020.1.4 | Viya | Viya |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | high |
| Date Modified: | 2020-12-07 10:37:29 |
| Date Created: | 2020-12-01 13:23:28 |