SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 66179: Data source filters that use parameters might not return expected results in SAS® Visual Analytics

DetailsHotfixAboutRate It

In some scenarios, data source filters that are based on a calculated item (which is based on parameters) might not return expected results in report objects.

For example, in the following report, when you click Sales in the button bar, the expected behavior is that all report objects display values. When you click Purchasing, report objects display no values.

The calculated item (called Filtervalue) contains the following:

IF ( 'Selection Parameter'p Missing )
RETURN '0'
ELSE (
IF ( 'Selection Parameter'p Contains 'Purchasing' )
RETURN '0'
ELSE (
IF ( 'Selection Parameter'p Contains 'Sales' )
RETURN '1'
ELSE '0' ) )

The data source filter contains the following:

( 'Filtervalue'n <> '0' ) AND ( GetLength('Filtervalue'n) > 0 )

However, when you click Sales in the button bar, the Key Value displays correct values, but other report objects are empty.

empty

If you save the report with the Sales value selected in the button bar and you switch to Viewer, all report objects show values.

values

As a workaround, you can add an expression similar to the following in the data source filter:

 "AND GetLength(SelectionParameter) > -1"

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Visual AnalyticsMicrosoft® Windows® for x647.59.4 TS1M6
Linux for x647.59.4 TS1M6
* 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.