Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to Filter with "starts with" in Report Builder 3.0 Reporting Model Query Designer?

Posted on 2014-02-10
5
Medium Priority
?
2,733 Views
Last Modified: 2014-02-12
I have a filter for a text field.  I want to filter out any items that starts with two letters "AB".  
I'm working with a reporting model and the related query designer.  
There is a "contains" option but I don't see a starts with or ends with option.  Nor do I see an option to ender my own expression.  I've tried contains with variations of the  % and *, but neither worked.  Any suggestions as to how to use a "starts with"/"ends with" type of filter with the query designer and a reporting mode?  (not sql)

Thank you,
0
Comment
Question by:jaisy99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39849488
It should be possible to use the Filter functionality on the dataset.  One of the operators is "like".  If you use the like in combination with a search value that ends with an asterisk (and not starts), you've got exactly the same as you'd have with Starts With.

Here's what the complete filter would look like:

Expression: YourTextField
Operator: Like
Value: AB*

Please note: this filter is different functionality than the filtering through the query designer...
0
 
LVL 1

Author Comment

by:jaisy99
ID: 39851564
Thank you.  This is working to find all that start with AB, but I want to filter these out/exclude them.  Where would I put the NOT using this filter section?
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 2000 total points
ID: 39852477
but I want to filter these out/exclude them

Ow right, missed that part, sorry.  This makes it a little more complicated because there's no "not like" operator, but it is possible.  The trick is to build an expression that filters out the records you don't want and then use a simple boolean comparison.  Here's how that goes:

Expression: =Left(Fields!YourTextField.Value, 2) = "AB"
Type: Boolean
Operator: =
Value: false
1
 
LVL 1

Author Closing Comment

by:jaisy99
ID: 39853467
Perfect.  Thank you so much!
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39855460
You're welcome!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question