Textbox based on select all of one of the parameters??

Answered Textbox based on select all of one of the parameters??

  • 13 Maret 2012 17:40
     
     

    Hello Friends,

    I have a report in which I have a Store parameter.

    On the report, I have a textbox which displays the selected stores name but I want the textbox to display as "ALL STORES" when all the values in the parameter are checked.

    Right now, I just gave a try for this but did not work

    =IIF((JOIN(Parameters!Stores.value).IndexOf("SelectAll")>= 0),"All Stores",(Join(Parameters!Stores.Label,", ")))

    Please help me by suggesting a way to do this.

    Thanks!

Semua Balasan

  • 13 Maret 2012 17:50
     
     Jawab

    if you know how many stores there is in you parameter's list, then you could try something like this:

    =iif(Parameters!Stores.Count = 10,"All Stores",Join(Parameters!Stores.Label,", "))


    Call me Sam. Once a gunners always a gunners

    • Ditandai sebagai Jawaban oleh sriven14 13 Maret 2012 17:57
    •  
  • 13 Maret 2012 17:57
     
     

    That worked!

    Thank you :)

  • 13 Maret 2012 23:31
     
     

    this is what i used when i did not know the exact number

    =iif(Parameters!StoreNumber.Count = Count(Fields!StoreName.Value, "ds_StoreNumber")
    ,"All"
    ,JOIN(Parameters!StoreNumber.Label,", "))