Need to display the first 5 values of a Multi value parameter in SSRS report

Hi All,
I have SSRS report with multi value parameter. I need to display the parameter selection values in a text box. I've more than 50 records in the multi value parameter list. I've included the code to display "All" if I choose "select
all" option otherwise it will show the selected values. But, I need to change the logic. I have to show only the 1st 5 records if I choose more than 5 records.
How can I implement this?
I have used the below code
=iif(
Parameters!Country.Count = Count(Fields!Country.Value,
"Country")
,"All"
,iif(Parameters!Country.Count>5
,"Display the 1st 5 values"
,Join(Parameters!Country.Value,",")
Regards,
Julie

Hi Julie,
Per my understanding that you want to always show the first values from the param country to a textbox when you have select more then five values from the dropdown list, if you checked "select all", textbox will display "All", if
you select <=5 amount of values. it will display the selected values, right?
I have tested on my local environment and that you can create an hide parameter(Param2) to display just the first five values from the Country and when you select more then five values from country you will get the Join(Parameters!Param2.Value,",")
to display.
Details information below for your reference:
Create an new DataSet2 which the Param2 will get the values from:
SELECT     TOP (5) Country
FROM        tablename
Create an new param2 and hide this parameter, Set the "Available values" and "Default values" by select the "Get the values from a query"(DataSet2)
You can also Specify first five value for the "Available values" and "Default values", thus you will not need to follow the step1 to create the dataset2
Modify the expression you have provided as below:
=iif(Parameters!Country.Count = Count(Fields!Country.Value, "DataSet1"),"All" ,iif(Parameters!Country.Count>5 ,Join(Parameters!Param2.Value,","),Join(Parameters!Country.Value,",")))
Preview like below
If you still have any problem, please feel free to ask.
Thanks, 
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support

Similar Messages

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • Conv. based on the month - Need to display the output in quarterly basis.

    Hi Gurus,
    I need to display the output quarterly based on the month.
    For example,
    If the year is 2012 and month is between
    01 to 03 i need to display it as 2012Q1
    likewise 04 to 06 as 2012q2
    and 07 to 09 as 2012q3
    and 10 to 12 as 2012q4.
    Please help me by providing sample codes. Please help yourself by writing the code and get back when you have a specific question.
    Thanks!
    Regards,
    Manoj
    Edited by: kishan P on Mar 2, 2012 3:14 PM

    Hi Vinod
    To get the last 13 months in webi report .follow below approach
    Assuming you have calendar Month object in the report.
    convert your selected date into M/d/yy format . let's say you selected 12/18/13 , your variable should be 12/1/13
    variable :
    Selected Month =ToDate(FormatDate(useresponse("Date");"Mmm yyyy");"Mmm yyyy")
    Flag for month     =ToDate([CalMonth];"Mmm yyyy")<=[Selected Month]
    Report filter          =[Flag for month]+Previous(Self)
    select the table you want to filter
    add filter -> Report filter between 1 to 13.
    Hope this will help.

  • UITextView doesn't display the first part of the text

    I am having a trouble with UITextView.
    When a text view is loaded for the first time after my app is launched (the text view is created and text is filled from saved data), the text view displays from the first letter of the text.
    But once the text view becomes first responder, then disappers by pressing back button on a navigation bar, and come back to the text view again by using a control on the previous view (a button for instance), the text view always displays the last part of the text.
    This happens after the text view becomes first responder. What is changed before and after the text view becomes first responder? And how can I avoid this to display the first letter in the text view always when it appears?
    I tried resignFirstResponder, selectedRange, and scrollRangeToVisible: in viewWill/DidAppear/Disappear but all of them didn't work.

    Thank you iPhil_good, but it didn't work ...
    And RickMaddy, I don't know how to post image but as it is UITextView, I use text to explain.
    There are two views, home view and text view, and UITextView is in the text view. The first time the UITextView appears (slides in from the home view), it looks like:
    Test[1] Test[2] Test[3] Test[4]
    Test[5] Test[6] Test[7] Test[8]
    Test[9] Test[10] Test[11] Test[12]
    Suppose the text starts at Test[1] and ends at Test[200], and just the first 50 are visible within the size of the UITextView.
    Once I tap on the UITextView, keyboard appears and UITextView becomes first responder (editable). Then I go back to the home view using back button on the navigation bar.
    Then again I move back to the text view from the home view,. This time it looks like:
    Test[189] Test[190] Test[191] Test[192]
    Test[193] Test[194] Test[195] Test[196]
    Test[197] Test[198] Test[199] Test[200]
    I would like to display the text from Test[1] whenever the view appears. If the UITextView hasn't become first responder, this doesn't happen and the text starts from Test[1] when it appears. But once the UITextView becomes first responder, the UITextView always displays Test[200] at the bottom of the view when it appears.
    I am not sure but it looks as though some internal state of UITextView changes when it becomes first responder, but isn't reset even after it resigns first responder.

  • I have a MacBook Pro and OS10.6 and am trying to log into a site that requires me to enter a code from a picture ... problem is all I get on the screen is a white '?' in a blue box. What do I need to display the picture?

    I have a MacBook Pro and OS10.6 and am trying to log into a site that requires me to enter a code from a picture ... problem is all I get on the screen is a white '?' in a blue box. What do I need to display the picture?

    Reload the page. If it doesn't load, choose Activity from Safari's Window menu, find that picture in the list, and see what it says to the right; this may reveal what the problem is.
    (91827)

  • How do I ungroup the pages in my doc, I need to move the first to the end, and it shows me all the pages are in a group

    On Pages:  I need to move the first page of my document to the end, and it shows me all the pages are in a group.  How do I ungroup the pages in my doc. 

    Hello there, linafrompereira.
    The following portion of the online Pages Help for Mac provides information on grouping items in Pages:
    Layer, group, and lock objects - Pages Help for Mac
    http://help.apple.com/pages/mac/5.2/#/tan5eab46568
    Group and ungroup objects
    Shift-click to select multiple objects.
    In the Arrange pane of the Format inspector, click Group (or choose Arrange > Group from the Arrange menu at the top of your computer screen).
    To ungroup an object, select it, then click Ungroup or choose Arrange > Ungroup.
    Tip: You can Control-click objects, then choose Group or Ungroup from the shortcut menu. You can also add these buttons to the toolbar: Group and Ungroup.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Pages will only display the first page of text.

    Pages will only display the first page of text. New pages are created as usual but blank and pages are visible through quick views. Reinstalling does not fix the problem, I don't know if it is an issue with settings. Pages v 4.1 on OS 10.7.4. Running on new macbook with retina.
    This is apparently a retina issue. Update hopefully soon

    You have not said but it sounds like you are using a Macbook pro with retina display.
    Pages is exhibiting all sorts of problems with the Retina display which Apple is supposedly working on.
    Peter

  • Why the test report's failure chain only display the first failure?

    Hi All,
        why the test report's failure chain only display the first failure step?how to get all the failure steps in the failure chain?
        Thanks a lot.
    BR
    Johnny

    Did a quick search and came across the following links
    http://zone.ni.com/devzone/cda/tut/p/id/4563
    http://zone.ni.com/devzone/cda/epd/p/id/3326
    Regards
    Ray Farmer

  • I need to display the date of every month 1st

    Hi All,
    I need to display the date from 01/01/2007 to 09/01/2008.
    example like this
    01/01/2007
    02/01/2007
    03/01/2007
    01/01/2008
    02/01/2008
    09/01/2008
    could u pls help me
    thanks,
    Dharma.

    This should give you something to work with:
    SQL&gt; SELECT ADD_MONTHS(TO_DATE('01/01/2007','MM/DD/YYYY'),LEVEL-1) AS months from dual connect by level &lt;= 21;
    MONTHS
    01/01/2007 00:00:00
    02/01/2007 00:00:00
    03/01/2007 00:00:00
    04/01/2007 00:00:00
    05/01/2007 00:00:00
    06/01/2007 00:00:00
    07/01/2007 00:00:00
    08/01/2007 00:00:00
    09/01/2007 00:00:00
    10/01/2007 00:00:00
    11/01/2007 00:00:00
    12/01/2007 00:00:00
    01/01/2008 00:00:00
    02/01/2008 00:00:00
    03/01/2008 00:00:00
    04/01/2008 00:00:00
    05/01/2008 00:00:00
    06/01/2008 00:00:00
    07/01/2008 00:00:00
    08/01/2008 00:00:00
    09/01/2008 00:00:00
    21 rows selected.Hope this helps!

  • I bought by mistake the 9.99$ creative suit along with the 19.99$ one. I need to cancel the first, how is it done?

    I bought by mistake the 9.99$ creative suit along with the 19.99$ one.
    I need to cancel the first and stick nwith the second, how is it done?

    Cancel the Cloud http://forums.adobe.com/thread/1439535?tstart=0 may help

  • Apex 4.0: Change the Search Field to a Multi Value Check Box IR

    I am new here, but hoping to be active :)
    Well, now I am focusing on Apex 4 and I find really new things here. And even new order to develope needs time to get used.
    Still, I am trying to change the Search Field to a Multi Value Check Box in IR. I have found how to make it in Apex version 3, but not at 4 any more.
    Tutorials for apex v.3 write:
    1.Click Edit Page 1 on the Developer toolbar.
    The Page Definition for page 1 appears.
    2. Under Items, click P1_REPORT_SEARCH.
    3. From Display As, select Checkbox ans so on...
    But I do not find any word "Items" in IR and especially P1_REPORT_SEARCH (I assume this should be by default). Under "Report Atributes" I find "Search bar" region, just there is no option for that. Is here any way to make search with checkboxes in v4?

    Hi,
    Tutorial you have check for APEX 3.x probably works still in APEX 4.x if you use classic report.
    As I understand you have now create interactive report that provide out of box search features.
    There is no option to change IR search text field to multi select item.
    What you can do with IR, is hide/disable search field.
    Then you create multi select item and use it in report query where clause.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to use the same column value in the casecadeing parameter in ssrs report?

    Hi frnz,
    I have a table site contains one filed SiteCode
    Now i have fields like below using the below quries 
    SThe above are the two results sets coming from the single table ,now i will use these two results /Query in my ssrs Casecade report
    1.First result set/Query will use for the first dataset and use these values in the paramet1 selection as PrimaryCodes
    2.Second result set/Query will use for the second Dataset and use these values in the parameter2 as SecondayCodes
    3.Using these two datsets and create a Casecadeing paramet in ssrs report.
    4.so using this information how can i create the Casecade report ,I have tried different ways but i didnt get the soluction
    I have done the follw but ididnt get the o/p.
    I have created two parameter and mapped to the results but while paramter selection i will able to see only the first paramet(PrimaryCodes) ,and i will not see the second paramter(SecondaryCodes) it could not show me the second paramter values in the drop
    down list.
    Note:Here i will use the Single Table to get the all the sitecodes 
    Can some one please help me out for this report.
    Thanks.

    Hi,
    Try below links for your reference:
    http://blogs.msdn.com/b/sqlforum/archive/2011/05/26/ssrs-cascading-parameter-with-optional-select-all-in-sql-reporting-services-report.aspx
    http://msdn.microsoft.com/en-us/library/dd255197.aspx
    http://blogs.msdn.com/b/psssql/archive/2010/01/29/how-to-have-a-select-all-multi-value-cascading-parameter.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • [Forum FAQ] SharePoint 2013: Extracting values from a multi-value enabled lookup column and merge values to a multi-value enabled column

    For some business requirements, users want to extract values from a multi-value enabled lookup column
    and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
    add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
    How to extract values from a multi-value enabled lookup column and add items to another list based
    on each separate value using SharePoint Designer 2013.
    Important actions: Loop Shape; Utility Actions
    Three scenarios
    Things to note
    Steps to create Workflow
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013.
    Important actions: Call HTTP Web Service; Build Dictionary
    Things to note
    Steps to create Workflow
    How to
    extract values from a multi-value enabled lookup column and
    add items to another list based on each separate value using SharePoint Designer 2013.
    For example, they have three lists as below. They want to
    extract values from the Destinations column
    in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
    Lookup1:
    Title (Single line of text)
    Lookup2:
    Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Important action
    1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
    Loops must also conform to the following rules:
    Loops must be within a stage, and stages cannot be within a loop.
    Steps may be within a loop.
    Loops may have only one entry and one exit point.
    2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
    Three scenarios
    We need to loop through the string returned from the look up column and look for commas. There are three
    scenarios:
    1.  No comma but string is non-empty so there is only one country.
    2.  At least one comma so there is at least two or more countries to loop.
    3.  In the loop we have consumed all the commas so we have found the last country. 
    Things to note
    There are two things to note:
    1. "Find string in string (output to Variable:index)"  will return -1 if doesn't find
    the searched for string.
    2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
    field as  "Lookup Values, Comma Delimited".
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup2.
    Add conditions and actions:
    Start the workflow automatically when an item is created.
    Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
    See the below in workflow History List:
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013
    For example, they have three lists as below. They want to find duplicate values in the Title column in
    Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
    Lookup1:
    Title (Single line of text)
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Lookup2:
    Title (Single line of text), Test (Single line of text).
    Important actions
    "Call HTTP Web Service"
    action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
    is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
    “Build Dictionary"
    action:
    The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
    The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
    The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
    Things to note
    The
    HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
    Use Get
    d/results(0)/Id form
    Variable: ResponseContent (Output to
    Variable: maxid) to get the Max ID.
    Use Set
    Variable: minid to Current List:ID to get the Min ID.
    Use Copy from
    Variable: destianation , starting at
    1 (Output to
    Variable: destianation) to remove the space.
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Test (Single line of text).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup3.
    Add a new "Build Dictionary" action
    to define the http request header:
    Add a Call HTTP Web Serviceaction, click on
    this and paste your http request.
    To associate the
    RequestHeader variable, select the Call action property,
    set the
    RequestHeaders property to
    RequestHeader:
    In the Call action, click on
    response and associate the response to a new
    variable: ResponseContent (of type Dictionary).
    After the Call action add Get item from Dictionary action to get the Max ID.
    Add Set Workflow Variable action to get the Min ID.
    Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
    Create item in Lookup2.
    The final Stage should look like this:
    Start the workflow automatically when an item is created.
    Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
    See the below in workflow History List:
    References
    SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
    http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
    Workflow actions quick reference (SharePoint 2013 Workflow platform):
    http://msdn.microsoft.com/en-us/library/jj164026.aspx
    Understanding Dictionary actions in SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
    Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/

    GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
    cancel).  I only found this out when recreating your workflow on a similar, but much more complex list set.  
    To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace.  I configured it as "Copy from
    Variable: Countries, starting at
    1 (Output to Variable: Countries), which takes care of this issue in those few cases.
    Otherwise, WOW!  AWESOME JOB!  Thanks!  :)

  • Need to display the Stock Values at storage location level - 0IC_C03

    Hi All,
    I am developing Stock Movent Report on 0IC_C03 - Material Stocks/Movements.
    I have more than one storage location for plant. Stock quantities are calculating at storage location level and Stock Values are calculating at plant level.
    I have no issues with quantities. Only problem with Values.
    2LIS_03_UM is not picking the starage location, so that the revaualtion values are falling under unassigned nodes. When i set filter on storage location these values were not showing as they are under un assigned nodes (#).
    I want to get the Stock Quantity and Stock Values at Storage location level in my report.
    I found that soulution for that is Applying SAP Note : How to Realize summarized display of stock values on storage
    I have done development as per the document. But when i run the Query it is going to debug mode first and then it saying This program cannot display the webpage
    Can any one faced the same situation, Please help me if so.
    Thanks in Advance.
    Gopal N

    Hi Sachein,
    I am getting this An exception(CX_RSR_PROPAGATE_X) occured when debugging, and then it leads to next screen saying that:
    This program cannot display the webpage
       Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
       What you can try:
         Check your Internet connection. Try visiting another website to make sure you are connected. 
         Retype the address. 
         Go back to the previous page.
         More information
    Please let me know you need any more information.
    Thanks in Advance
    Gopal N

  • FSG - Need to determine the first periode value in year

    Hi
    can anyone help me please
    i need to create a column or row in FSG with the first period balance value in years
    for example of the template is:
    parameter period is Mar-12
    Amount
    Balance of Jan-12 10,000
    Balance of current period 12,000
    thanks
    Lim Johny

    Hi;
    What is EBS version?
    Please review:
         How to Create FSG Report to show a Row Only if the Balance is Debit or Credit [ID 754162.1]
         How to Create a Row Set, Column Set, or Content Set report [ID 108305.1]
         FSG Functional Troubleshooting Guide [ID 136328.1]
    Hope it helps
    Regard
    Helios

Maybe you are looking for

  • My safari won't open up netflix

    My Safari has been acting up lately and it doesn't recognize all of my passwords god forbid I log out of a website...help please!!

  • Binary context of File upload

    hi, In file upload UI element we have a property called <b>Data</b> which is of binary data type.When I upload any file and display the value present in the binary context it gives a valu eg:B@1f15ee0 .How can i see the binary values in the context ?

  • How do I code PL/SQL using files instead of directly against the database

    Hi All, My current project, like pretty much all I've every worked on, requires all developers of pl/sql routines to code those routines in source controlled files. We then edit the files (normally using TOAD - trying to move to SQL Developer) compil

  • Advice on possible ways

    I'm on Oracle 9i R2 Patch 7 on a Microsoft Windows 2003 Server. What are the options to enable email notification to the DBA? For example, I have a query that returns the size of datafiles and I wish to run this query every night and send me an email

  • Itunes update 12.0.1 causing crackling music on playback.

    I updated my itunes with the new 12.0.1 update. I started playing music and noticed weird crackling in the playback of songs, not unbearable static just odd crackling noises that you can easily notice and ruin the music experience. Sometimes the crac