I'm not sure if this is possible or not, but thought I would raise the question. I've got a set of data which contains around 5,000 lines of free text which I would like to simply search for a specific keyword such as 'zip' or 'bow' for instance, so that the results are filtered. However, using the text input control, it only allows me to return an exact match of a string of text. Am I missing something obvious here, or is this potentially a feature on the horizon? I'm using SAS VA 6.2.
As you said, an on-report keyword search filter would require a filter expression created in the designer, and the keyword couldn't be modified by report consumers in the current and previous releases of Visual Analytics. However, in the upcoming 7.1 release, targeted for this fall, you will have a new parameterization capability that will enable you to create a filter control that uses additional operators, such as contains, startswith, endswith, etc. Essentially, you'll be able to create numeric and character parameters and use them in both filter and calculation expressions, among other things, and associate a parameter with input controls that you place on the report for viewers to change. To meet your text search filter requirement for report consumers in 7.1, you first create a parameter in the designer, and then a filter expression that references this parameter. Then, you associate that parameter with an input control, like the text input control. Not only does this allow you to use operators other than equality for report consumer filter selections, a parameterized filter expression allows you to have multiple filter controls that are ORed. As you likely know, multiple on-report filter controls in the viewer are implicitly ANDed in 6.4 and prior releases.
Alex, I hope this helps.
Is there now a "how to guide" on how to do this?
Im struggeling with how to create the parameter to obtain this.
Trport with a textbox where user enters value -> report filtered by user entry where variable contains "user entry text"
Your help is much obliged
To create the parameter, you can right-click the Parameter heading in the filter editor and select Create Parameter. Then you can use the parameter in your filter expression, which might look something like 'Body'n Contains 'Parameter 1'p
To enable the viewer to specify the parameter value, create a "text input" control and assign the parameter to the Parameter role for the text input control.
Does that help?
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.