BookmarkSubscribeRSS Feed
AleCla
Obsidian | Level 7

Hi,

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.

Kind regards,

Alex

7 REPLIES 7
AleCla
Obsidian | Level 7

Just to add, I know this can be done by applying a manual filter if you have the authority to use the report builder options, but I want standard report viewers to be able to easily control this.

Alex

RickStyll_SAS
SAS Employee

Hi Alex,

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.

Rick Styll

AleCla
Obsidian | Level 7

That's really useful to know, and i'll keep an eye out for it in the next version!

Many thanks,

Alex

sveinola_gundhus_tv2_no
Fluorite | Level 6

Hi

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

 

 

Sam_SAS
SAS Employee

Hello,

 

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?

 

Thanks,

Sam

sveinola_gundhus_tv2_no
Fluorite | Level 6

Hi,

Thank you very much. This was great help.

 

Br

Svein

maverickkub
Obsidian | Level 7

Thank you so much,this was really Helpful!!!!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 7 replies
  • 6674 views
  • 5 likes
  • 5 in conversation