Filtering on Multiple wildcards

Hi. I'm using SSRS 2008 and I've created a report of some computers and I added a parameter to filter by computer name using a wildcard. Eg Computer* 
This is filtered using the Filter on the dataset so the Expression = Computer_Name 
Operator Like
Value <parameter for the report>
However my boss now decides that he wants to be able to filter by multiple computer names. Like
Computer*,Server*
Any ideas how I'd go about this I'm completely stuck. 

Hi ChirsC200,
According to your description, you want to have a multi value parameter to filter records which the field is like the values in parameter. Right?
In this scenario, we can’t use filters to achieve this goal because it only has AND logic between filters, but we need OR logic. And simply modification in query is not working as well. However, we can create a function to split the string in parameter and
put divided string into a table, then we compare the field with the records in the table and filter the records which are like the wildcards. We have tested this case in our local environment. Here are steps and screenshots for your reference:
1. Create a function in database. Execute the commands below:
CREATE FUNCTION [dbo].[SplitParameterValues] (@InputString NVARCHAR(max), @SplitChar VARCHAR(5))
RETURNS @ValuesList TABLE
param NVARCHAR(255)
AS
BEGIN
DECLARE @ListValue NVARCHAR(max)
SET @InputString = @InputString + @SplitChar
WHILE @InputString!= @SplitChar
BEGIN
SELECT @ListValue = SUBSTRING(@InputString , 1, (CHARINDEX(@SplitChar, @InputString)-1))
IF (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar))>(LEN(@InputString))
BEGIN
SET @InputString=@SplitChar
END
ELSE
BEGIN
SELECT @InputString = SUBSTRING(@InputString, (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar)) , LEN(@InputString)-(CHARINDEX(@SplitChar, @InputString)+ len(@SplitChar)-1) )
END
INSERT INTO @ValuesList VALUES( @ListValue)
END
RETURN
END
2. Create a procedure to get records which are like the wildcards in parameter.
Create PROCEDURE sp (@Type nvarchar(50))
AS
SELECT     DocID,Type
FROM         Computer c
inner join (SELECT [param] FROM SplitParameter
Values (@Type,',')) s on c.Type like (s.[param]+'%')  
Ps: You may need to modify in query part based on your table structure.
3. Go to report. Create a parameter, set specific value (Computer, Server….) in Available Values.
4. Create a dataset and get data for the Procedure sp.
5. Save and preview. It looks like below:
Reference:
[Forum FAQ]How do I add a search feature
in the parameter with long drop down list?
If you have any question, please feel free to ask.
Best Regards,
Simon Hou (Pactera)

Similar Messages

  • Essbase cannot union filters from multiple groups

    Hi All,
    I got a problem to provisioning on Shared Service.
    In some case, I need to grant multiple filters to a Essbase users, say user01.
    However, each user can associated one Essbase filter only.
    For better management, I create multiple groups with different filters and assign the user, user01, into the groups.
    For first two groups are working normally. However, Essbase cannot "union" all filters from multiple groups after the users join the third groups.
    However, I try to combine the three filter into a filter with three rows. It is working!!!
    It is because there are large number of users in external LDAP. It is unmanageable when combining multiple filters into a filters. Is there any way to solve this problem? or is there any better approach to do the security ?
    Thanks in advance!!!
    Regards,
    TKC

    Thanks for your reply.
    I have following structure in Essbase. I try to make it simple to understand.
    Dept (dimension)
    |_C00
    |_CTTL
    |_C01
    |_C02
    Project (dimension)
    |_GEN
    |_P01
    |_P02
    |_P03
    |_PI
    |_A
    |_P01 (shared member)
    |_B
    |_P02 (shared member)
    |_P03 (shared member)
    Group A with Filter F01
    Read - CTTL, IDESCENDENT(A)
    Group B with Filter F02
    Read - C01, P01, P02
    User joins A and B group.
    The end result of user is that
    he can access CTTL of P01 only
    he can access C01 of P01 and P02 only
    he cannot access C02 of any Project dimension
    he cannot access CTTL of P03
    However, I found that when I change to metaread. The result is going wrong.
    he can access C01 of P01, P02 and P03 only.
    It is because I need to block user to view members which he cannot access.
    I need "metaread" function.
    So somebody tell me how to achieve this? Thanks in advance.
    Edited by: user070322 on Jan 4, 2009 8:37 PM
    Edited by: user070322 on Jan 5, 2009 6:04 PM

  • Jms message filtering with multiple fields

    Hi
    Can anybody please tell me how to do message filtering with multiple fields. i using jdeveloper11.1.1.4.0 , soa11g suite and weblogic 10.3.
    previously i used JMSType property for one field filtering.
    and is it possible to invoke jms adapter with our own properties (adding property to jms).
    thanks,
    Sourbh

    thanks atheek
    i worked with the same and it helped me a lot i can share one more link that will help.
    http://forums.oracle.com/forums/thread.jspa?messageID=9650255&#9650255
    Regards,
    Sourbh.

  • Remove filters from multiple clips

    Is there any way of deleting effects filters from multiple clips, a reverse of the paste effects or paste attributes functions?

    Brilliant - Sounds so logical when you know how.
    You have saved me hours.
    Thanks

  • List View filtered by multiple params (one from cookie) - works fine when groups are expanded initially, but hides filtered items when collapsed and then expanded.

    Hello!
    I have a page with a list view web part. I am applying multiple filter parameters to it: I have to display documents for all US locations (general) and also filtered view of documents for user's office location. I am setting the user location Cookie and
    i have configured webpart with Param to read it. Second filter value is hard-coded (Non-specific location). It all works FINE when i set the list View to expand all groups by default.  The problem starts when I set it to be collapsed from the start: 
    Collapsed group shows correct number of items to be inside but when i expand it, the 1 extra LOCAL item filtered by {PARAM}  is missing from inside this expanded group. Only items filtered by a "hardcoded text param" are being shown.  And
    again - when i change the view and set it to be expanded by default - ALL items are being shown without any problem! Only thing that breaks it - setting of collapsed-expanded for this view groups. nothing else.
    Any suggestion on how to work with this thing?
    I can't make all groups expanded by default - too many documents, but it only time when it works.
    I tried changing view design, other characteristics, but nothing makes it change the behavior so far.
    I really want o avoid creating custom "hardcoded" views for each location where location is predefined instead of dynamically read it from cookie. For me it looks like something is connected with PARAM as only these items are affected by this weird
    behavior. Thank you in advance!

    Hi Olga
    I have tried the method you have mentioned, but the jquery function is not working to collapse the groups.
    I have tried 2 approaches, but none of them is working fully:
    1) Raising the Click event as follows
    for (var i = 0; i < links.length; i++)
                         if (links[i].href == "javascript:" && links[i].onclick.toString().indexOf("ExpCollGroup")
    > -1)
                               links[i].click();
    2) ExpCollGroup()
    Please suggest or send the correct method to collapse

  • Oracle BI Publisher - Passing multiple wildcard search to a bind variable

    Hi,
    Please help me in resolving the below mentioned issue:
    I have developed a report in oracle BI Publisher with a SQL query.
    While scheduling the report to run I used to pass mutilple parameters like CGAMSVC08,RLCSVC51
    If the pass the parameter with wildcard search like C% it works.
    When I pass two or more parameter values with wildcard search like C%,R% its not working.
    Could you please let me know how should I give the bind variable in the SQL query. Currently I'm paramater like the one shown below for passing multiple paramaters:
    Where (',' || :PRMRETRID || ',' like '%,'||RL.RETROFIT_ID|| ',%')
    Edited by: user1101445 on May 23, 2012 2:02 AM

    HI Tyler.
    Well, here's the latest.
    I found this little gem in the BIEE 10.1.3.3.3 Release Notes Documentation...
    This issue applies to Versions 10.1.3.3, 10.1.3.3.1, 10.1.3.3.2, and 10.1.3.3.3.
    Reports that use the BI Publisher data template as the data model may fail with the
    following error: "Data not defined."
    This error will occur if you defined a parameter in your data template but you do not
    pass a value to it via the user interface. If you do not specify this parameter in the "Parameters" section of the report definition that you created using the BI Publisher Edit Report interface, then you will receive the error.
    To work around this issue, either define the parameter in the Edit Report interface or remove the parameter from the data template.
    That bit is now working.
    Having set this up and using your guide it works if my SOAP parameters declaration passes a single value like this...
    <parameterNameValues>
    <item>
    <name>P_INVOICE_ID</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>16641</item>
    </values>
    </item>
    </parameterNameValues>
    But if I try and pass two or more like this...
    <parameterNameValues>
    <item>
    <name>P_INVOICE_ID</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>16641,18421</item>
    </values>
    </item>
    </parameterNameValues>
    BIP states "java.sql.SQLException: ORA-01722: invalid number"
    My SQL where clause is..
    <sqlStatement name="Q1">
    <![CDATA[select * from vw_invoice_summary
                   where invoice_summary_id IN (:P_INVOICE_ID)]]>
    </sqlStatement>
    And the BIP error records the parameter value as P_INVOICE_ID 16641,18421 (which are legit invoice IDs)
    In summary, works if I pass one invoice ID, fails if I pass two or more.
    Any ideas? Or do you reckon this is now a post for the BIP forum?
    Kind regards.
    Simon

  • Selective IP filtering for multiple servers in a domain?

    Is it possible to have IP filtering on for certain servers in a
    domain, and not for others?
    This is the situation:
    I am deploying two servers in mydomain, so let's call it serverA
    and serverB. I want serverA to accept all connections while
    serverB accepts connections only from certain IPs. I know you
    can do IP filtering using SimpleConnectionFilter in the
    "Connection Filter" option in Security->General tab of the Admin
    console, but this turns on IP filtering for BOTH serverA and
    serverB! How do I turn it on for one, and not the other? Any
    help would be greatly appreciated. Thank you.
    Leon

    Hi,
    Yes you can have muliple servers in a domain. You can create as many managed
    servers as your hardware can handle. When you added the server, did you use the
    startManagedWebLogic.sh (or .cmd) script to start the server. Once you do that,
    you should see the server as running.
    Hope this helps,
    pat
    "MS" <[email protected]> wrote:
    >
    Hello All,
    Is it possible to have multiple servers in a domain?
    When I add a new server, the State is reported in the weblogic console
    as "UNKNOWN".
    What does this mean?
    rgds
    MS

  • Applying video filters to multiple clips in Final Cut Express HD

    Is there a way to select multiple video clips and add a video filter to all of them? Example: we have a movie that was recorded in 2 different widescreen aspects ratios. Can I change them to the same aspect ratio easily?

    I can't say for FCE, you may want to post in that forum. But in FCP, the method for applying filter(s) to multiple clips is to apply the filter to one clip then make the needed adjustments on the filter(s) in that clip. Next, right-click on that clip and select "Copy" from the contextual menu. Next, select all of the other clips to which you want to apply the same filter(s) and settings. Right-click on one of them and choose "Paste Attributes" from the contextual menu. When the Attributes window opens, choose Filters, then click OK.
    To apply the same filter to several clips (without settings) at the same time, select the clips in the Timeline, then drag the filter(s) from the Browser to the clips.
    -DH

  • Passing filters to multiple Analyzer reports

    I've used the drill link to pass filters to another (single) report, no problem. Has anyone figured a way to pass filter to multiple reports?
    We bring users into a high level screen where they select their location with access being controlled by filters. Once there they have the option of selecting several reports using service buttons and would like the location passed instead of having to select again.
    Using Analyzer 7.2 and will be upgrading to System 9 this year.

    Hi,
    Yes, this is very much possible. Here's what you need to do:
    If the parameter is a string, number or date created in the Main Report then you can right-click the 1st subreport and select 'Change Subreport Links' > In the Fields to link to area move the Main Report parameter from the Available Fields area on the left.
    If the Subreport also has parameters then you can select the right-one that needs to be linked from the drop-down. This is directly link the Main report parameter to the Subreport parameter and you would prompted only once.
    Hope this helps!
    -Abhilash

  • Problem with ALV filter functionality when filtered for multiple values

    Hi,
    I am facing a problem with ALV filter functionality.
    I have displayed an ALV with some columns col_A, col_B and col_C
    col_A---- col_B -
    col_C
    1----
    a -
    abc
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    5----
    f -
    stu
    From the settings link I am applying filter on column col_C and selected multiple values say 'pqr', 'xyz' and 'lmn'.
    Now the ALV is showing rows only for last selection i.e . results are fetched only for value 'lmn'.
    i.e. after applying the filter the ALV table looks as below:
    col_A---- col_B -
    col_C
    3----
    c -
    lmn
    But ideally it should be:
    col_A---- col_B -
    col_C
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    I could not find any OSS note related to this issue.
    Please help me resolve this issue.
    Thanks,
    Feroz

    Hi,
    I am facing a problem with ALV filter functionality.
    I have displayed an ALV with some columns col_A, col_B and col_C
    col_A---- col_B -
    col_C
    1----
    a -
    abc
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    5----
    f -
    stu
    From the settings link I am applying filter on column col_C and selected multiple values say 'pqr', 'xyz' and 'lmn'.
    Now the ALV is showing rows only for last selection i.e . results are fetched only for value 'lmn'.
    i.e. after applying the filter the ALV table looks as below:
    col_A---- col_B -
    col_C
    3----
    c -
    lmn
    But ideally it should be:
    col_A---- col_B -
    col_C
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    I could not find any OSS note related to this issue.
    Please help me resolve this issue.
    Thanks,
    Feroz

  • Applying multiple filters to multiple clips?

    Hi Guys
    I have about 100 clips in my Bin, is there a way to apply the same set of filters to all of them without dragging them into the timeline first?
    I tried dragging all of them into the timeline, then pasted filter attributes which works, then I did a long render which was fine, I then dragged them back into the Logging bin. The problem is when I drag them back to the timeline the need redering again.
    I basically want to apply the filters to all of my clips first while keeping them in the logging bin, then drag them to timeline as I need them.
    All ideas appreciated
    Cheers!

    I think you pretty much did what you can do in that respect.
    You could create a new timeline with the same settings, drag all your clips there, apply the filters, then drag copy clips as you need them to your original timeline. Seems like a strange way to do it though. Why not just cut your show without the filters then add the filters at the end?
    rh

  • Filtering on multiple options

    This ought to be elementary, so it's frustrating that it doesn't work. I have a XML dataset of community events that contains an "agegroups" field. I want to filter on agegroups, but sometime several possible values are equally valid, e.g. if I want to display events for Adults, I don't care whether the field contains "Adults", "Seniors", or "All Ages". If any of these show up the row should be retained. However if the field doesn't have one of these values it should be filtered out.
    I copied the example in the online documentation (http://livedocs.adobe.com/en_US/Spry/SDG/help.html?content=WS880F1685-DD39-484b-A818-F8903 724E215.html) with a little tweaking:
    // Filter out all rows that don't have adult events.
    var myFilterFunc = function(dataSet, row, rowNumber)
        if ((row["@agegroups"].search(/Adults/)) || (row["@agegroups"].search(/Seniors/)) || (row["@agegroups"].search(/All/)) != -1)
            return row; // Return the row to keep it in the data set.
        return null; // Return null to remove the row from the data set.
    dsEvents.filter(myFilterFunc); // Filter the rows in the data set.
    Obviously the problem is that nothing got filtered - all events are displayed. I even retreated to the exact example and just searched for "A" in the initial position. No luck.
    So, two questions:
    1. Any suggestions on getting this to work?
    2. What's with the */ at the end? This is supposed to be a close comment, but there's no beginning and if I remove it no results are displayed at all. Sometimes I think Spry is just wacky for no reason at all.

    This might help http://amcomtech.net/labs/ajaxframeworks/spry/filterfunction.cfm

  • Question about filtering by multiple keywords

    I must be missing something, because setting up a filter using multiple keywords doesn't seem to be working for me. I'm clicking "Text" in the Library Filter, then selecting "Keywords" and "Contains All". When I type in multiple keywords, separated by a space, the list still contains photos that do not contain ALL of the keywords I entered. The resulting list seems to be displaying photos as if I selected "Contains Any" instead of "Contains All". Am I missing something obvious here?
    - Dave

    Could you provide a specific keyword example? Do you perhaps have two keywords such as 'Horse Carriage' and 'Horse'?
    Using the text filter "Keywords Contain All Horse" would also find images with the keyword 'Horse Carriage'.

  • OLAP universe query filters using multiple key values

    Hi,
    We are running BO over a MSAS 2005 cube and due to reporting requirements we have had to split the year out from the standard time hierarchy so we have it as a separate hierarchy from the rest of the time hierarchy. We also have 2 other dimension objects we use to find the current reporting month (shown below as Current Month and Current Year) which link to the Year and Month dimensions to give us the current year and current month.
    I have created predefined filters in the universe for Last Month and Last 6 Months etc which link the 2 hierarchies together to dynamically find the correct months to pull out based on the current reporting month.
    The issue i am facing is that when these filters are used in reports we are not able to pull through the Year dimension in the report as we receive the error: "The Year Hierarchy hierarchy is used more than once in the Crossjoin function"
    We can however use the Month dimension in reports even though it is also referenced in the filter definition.
    I have narrowed the issue down to the fact the Month dimension is mentioned in the Filter Key which allows it to be used in the reports.
    Is it possible to include 2 key values or are there any other ideas on how to tackle this problem so i can include the both the year and month in reports using these filters?
    Last Month filter:
    <FILTER KEY="@Select(Period To Date\Month).[TECH_NAME]"><CONDITION OPERATORCONDITION="InList"><CONSTANT TECH_NAME="CASE WHEN FILTER(@Select(Period To Date\Month).Members,@Select(Period To Date\Current Month).[Y]).Item(0)= @Select(Period To Date\Month).[January] THEN {CrossJoin(FILTER(@Select(Period To Date\Month).Members,@Select(Period To Date\Current Month).[Y]).Item(0).lead(11),FILTER(@Select(Period To Date\Year).Members,@Select(Period To Date\Current Year).[Y]).Item(0).lag(1))} ELSE CrossJoin(FILTER(@Select(Period To Date\Month).Members,@Select(Period To Date\Current Month).[Y]).Item(0).lag(1),FILTER(@Select(Period To Date\Year).Members,@Select(Period To Date\Current Year).[Y]).Item(0)) END"></CONSTANT></CONDITION></FILTER>
    Thanks in advance

    Dear Daniel, may I ask one more question please?
    what if I have 4 tables?
    table1
    ID * ID_Type_code * Name
    0001 * 11 * abc
    0002 * 12 * abcd
    0003 * 13 * abcde
    table2
    ID * OID_type_code * Name
    0001 * 22 * abc
    0002 * 23 * abcd
    0002 * 25 * abcd
    0003 * 23 * abcde
    0003 * 22 * abcde
    0003 * 28 * abcde
    table3
    ID * OID_type_code * OGAD_line_id * address
    0001 * 22 * 1 * a street
    0001 * 22 * 2 * b street
    0002 * 23 * 1 * c street
    0002 * 25 * 1 * d street
    0003 * 28 * 1 * e street
    0003 * 28 * 2 * f street
    0003 * 28 * 3 * g street
    table 4
    ID OID_type_codeOGAD_line_id*COP_line_id*phone number
    0001*22*1*1*2222222222
    0001*22*1*2*3333333333
    0002*23*1*1*4444444444
    0003*28*2*1*5555555555
    0003*28*2*2*6666666666
    Primary key for each table
    table1, primary key is ID
    table2, primary key is ID , OID_type_code
    table3, primary key is ID , OID_type_code, OGAD_line_id
    table4, primary key is ID , OID_type_code, OGAD_line_id , COP_line_id
    I would like to show each value in each table in the separate input text fields.
    Therefore, this is an advanced question based on the previous one, not only get values from one table but also from several tables based on input for example 0003 and 28 as the ID and OID_type_code?.
    Let me know if you need more details,
    Thank you so much,
    Viola

  • 'turning off' all filters from multiple clips at once???

    FCP 5.1.4
    Is there a way to collectively disactivate or turn off the filters on a group of clips all at once?
    I'm making a spot using the material from the film. The master film sequences have a lot of filters assigned ... but the sequences are no longer rendered. I want to pull diverse shots from the film without having to either render, or delete the filters. Once the clip is cut I'd like to be able to just turn the filters back on prior to exporting the new clip out.
    All ears,
    Ben

    Is there a way to collectively disactivate or turn off the filters on a group of clips all at once?
    As already mentioned, no.
    However, you can turn off filters for an entire sequence. Go to Sequence Settings (Command-0, that's zero) then the Render Control tab and uncheck the Filters checkbox. Of course, be sure to toggle it back on before you export.
    Not sure how well this translates to nested sequence though...

Maybe you are looking for

  • How can I select a channel on the RT target with a VI on the host?

    Maybe I'm trying to pound a square peg into a round hole, so please let me know if I'm abusing LV, but ... I'm trying to parameterize our RT VI app that deals with digital output channels.  We use the same basic VI for multiple configurations.  The o

  • DUMP:MEMORY LOW

    Dear all, While running a particular report ZMIS I am getting the following error Note which actions and input led to the error. For further help in handling the problem, contact your SAP administrator You can use the ABAP dump analysis transaction S

  • Sent messages not saved in sent mailbox

    Lately some iCloud sent messages are not saved in the sent mailbox.  this is an intermitant problem.  sometimes msgs go to the outbox even though mail is on line; when they are eventually sent sometimes they do not make it to the sent mailbox.  I cal

  • Which MP3 Player Should I buy?

    After using a MP3 player in my clunky  5 year old cell phone for years, I'd like to buy a player.  I understand that the I-tunes program that my sister downloaded onto my computer, along with her songs will only play on an Apple I-Pod.  Does that mea

  • Customize cuts off right side of all toolbars

    As soon as I click "Customize", the upper right side of my browser is cutoff. I can't access or make any edits because the editable options and buttons are pushed out of view to the far right. https://www.dropbox.com/s/87welurau5yzti6/Capture.PNG?dl=