Using iif inside a lookupset to change expression result

Hey all, I've got an expression that is currently using a lookupset to pull data from a different dataset. I also need to replace the output of my expression with certain values, but I'm unable to figure out exactly what syntax I need for my iif statement
within this lookupset. The current expression I have is returning me the value that I'm trying to change, so I've got that far. My expression looks like this:
=Join(LookupSet(Fields!Team.Value, Fields!Team.Value, Fields!ID_Average.Value, "GlobalRating") ,iif(Fields!ID_Average.Value = 4, "Very Good", "NONE"))
This will return the value that I'm trying to replace with my string. Any help in getting my syntax would be greatly appreciated.
Thanks,
Bryan

Hey all, I've got an expression that is currently using a lookupset to pull data from a different dataset. I also need to replace the output of my expression with certain values, but I'm unable to figure out exactly what syntax I need for my iif statement
within this lookupset. The current expression I have is returning me the value that I'm trying to change, so I've got that far. My expression looks like this:
=Join(LookupSet(Fields!Team.Value, Fields!Team.Value, Fields!ID_Average.Value, "GlobalRating") ,iif(Fields!ID_Average.Value = 4, "Very Good", "NONE"))
This will return the value that I'm trying to replace with my string. Any help in getting my syntax would be greatly appreciated.
Thanks,
Bryan
Sorry not quite clear how you want the output to come
As I see you're using an expression for delimiter argument which doesnt seem correct. LookupSet returns you an array. Didnt understand how you want array to get returned
Can you show a data sample and explain?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • IIF, BITAND & Logical AND in SSRS Expressions

    I have had some interesting times using IIF to display "X" when a bit is a word is true and "" when it is not. I THINK I understand it all now but would appreciate comments from anyone else to confirm that my understanding
    is correct.
    I was using, for example, the integer 8 as a bit mask to test for bit 3. In most programming language that I am familiar with, to test whether bit 3 is set in an integer X the test is "X and 8 = 8", looking for this to
    be true.
    In SSRS I tried =iif(x AND 8 = 8,"X","")
    but this always returned true. I then tried =iif((x AND 8) = 8,"X","") and that seemed to work as expected.
    My conclusion is that "AND" can be interpreted as either a
    Bitwise AND or a Logical AND depending on the context. In the first case I assume that "X" was evaluating as TRUE as was "8 = 8" so the result was always true. In the second case I had forced a
    Bitwise AND by using brackets to indicate precedence and got the result that I expected.
    This brings be to a second point. I have the impression that when presented with a numeric result (rather than 1/0 or TRUE/FALSE) IIF interprets 0 as false and any value greater than 0 as true.
    I say this because iif(x and 8, "X", "")
    also seemed to work even though the result should be either 8 if bit 3 not set and 0 if it is not.
    This is an example of and Excel function that does the same thing.
    Option Explicit
    Public Function BITAND(x As Long, y As Long)
        Dim z As Long
        Dim result As String
        z = x And y
        If z = y Then
            result = "X"
        Else
            result = ""
        End If
        BITAND = result
    End Function
    R Campbell

    Yes your understanding is correct
    This is from MSDN docuentation
    Logical and Bitwise
    Logical and bitwise operators perform logical manipulations between two integer terms in an expression.
    Operator
    Description
    And
    Performs a logical conjunction on two Boolean expressions, or bitwise conjunction on two numeric expressions.
    see
    http://msdn.microsoft.com/en-IN/library/dd255271.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • What is use of AT NEW and AT CHANGE

    what is use of AT NEW and AT CHANGE

    Using AT NEW
    Use at new to detect a change in a column from one loop pass to the next. This statements enable you to execute code at the beginning of a group of records.
    Syntax for the at new Statement
    sort by c.
    loop at it.
        at new c.
         endat.
        endloop.
    where:
    it is an internal table.
    c is a component of it.
    The following points apply:
    This statements can only be used within loop at; it cannot be used within select.
    at new does not have to come before at end of. It can appear in any order.
    This statement can appear multiple times within the same loop. For example, you could have two at new and three at end of statements within one loop and they can appear in any order.
    These statements should not be nested inside of one another (that is, at end of should not be placed inside of at new / endat).
    There are no additions to these statements.
    Each time the value of c changes, the lines of code between at new and endat are executed. This block is also executed during the first loop pass or if any fields to the left of c change. Between at and endat, the numeric fields to the right of c are set to zero. The non-numeric fields are filled with asterisks (*). If there are multiple occurrences of at new, they are all executed. at end of behaves in a similar fashion.
    A control level is the component named on a control break statement; it regulates the control break. For example, in the following code snippet, f2 is a control level because it appears on the at new statement.
    loop at it.
        at new f2.
            "(some code here)
            endat.
        endloop.
    It is said that a control break is triggered if the control level changes. This means that when the contents of the control level change, the code between the at and endat is executed.
    A control break is also triggered if any of the fields prior to the control level in the structure change. Therefore, you should define the internal table structure to begin with the fields that form your control levels. You must also sort by all fields prior to and including c.
    Between at and endat, numeric fields to the right of the control level will be zero and non-numeric fields will be filled with asterisks.
    Using ON CHANGE OF
    Another statement you can use to perform control break processing is on change of. It behaves in a manner similar to at new.
    Syntax for the on change of Statement
    The following is the syntax for the on change of statement.
    on change of v1 or v2 .
    else.
    endon.
    where:
    v1 and v2 are variable or field string names.
    any number of or conditions might follow.
    The following points apply:
    If the value of any of the variables (v1, v2, and so on) changes from one test to the next, the statements following on change of are executed.
    If no change is detected and else is specified, the statements following else are executed.
    on change of differs from at new in the following respects:
    It can be used in any loop construct, not just loop at. For example, it can be used within select and endselect, do and enddo, or while and endwhile, as well as inside get events.
    A single on change of can be triggered by a change within one or more fields named after of and separated by or. These fields can be elementary fields or field strings. If you are within a loop, these fields do not have to belong to the loop.
    When used within a loop, a change in a field to the left of the control level does not trigger a control break.
    When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
    You can use else between on change of and endon.
    You can use it with loop at it where . . ..
    You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
    Any values changed within on change of remain changed after endon. The contents of the header line are not restored as they are for at and endat.
    When a loop begins execution, the system creates a global auxiliary field for each field named in an on change of statement contained by the loop. On creation, these fields are given default initial values (blanks or zeros). They are freed when the loop ends.
    Each time on change of is executed, the contents of its fields are compared with the contents of the global auxiliary fields. If they are different, the on change of is triggered and the auxiliary fields are updated with the new values. If they are the same, the code within on change of is not executed
    Because global auxiliary fields do not exist outside a loop, you cannot use on change of outside of a loop.
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • CC&B 2.1.0 upgrade of use of Microfucos visual cobol from net express

    Would there be any issue of upgrading the use of Microfocus Visual Cobol from Net Express?

    starfry wrote:I don't know if it's related to your problem but GPG2.1 doesn't allow pass phrases to be specified in a file or on the command-line. See the page on unattended operation, look at "%ask-passphrase" and "%no-protection" https://www.gnupg.org/documentation/man … ation.html
    Thanks for the link - that's only for gen-key, however. But I do confirm the "--passphrase-fd 0" is supposed to still be working as described in the current docs:
    https://www.gnupg.org/documentation/man … ic-Options
    --passphrase-fd n
        Read the passphrase from file descriptor n. Only the first line will be read from file descriptor n. If you use 0 for n, the passphrase will be read from STDIN. This can only be used if only one passphrase is supplied.
    So in theory the functionality hasn't changed. :-/

  • I find it rather frustrating that you can't use things like {myArray[0]} in Bindable expressions

    I find it rather frustrating that you can't use things like
    {myArray[0]} in Bindable expressions. Are there any workarounds
    apart from manually changing the dataprovider?

    Yes, instead of an array you have to use an arraycollection
    (just wrap your array) and then you can use this with the
    getItemAt()-method.
    e.g.
    {myArrayCollection.getItemAt(0)}
    cheers
    Dietmar

  • LG enV3 First letter always defaults to lowercase when texting using the inside full keyboard

    LG enV3 First letter always defaults to lowercase when texting using the inside full keyboard...yet works fine on outside keypad. I have the settings set up properly on the phone to Abc. Even if I change to all caps, it only affects the outside keypad on front of phone, and not the full inside keyboard when flipped open. SW version is VX920V02. I have tried resetting phone, yet did nothing.
    Any help is appreciated!

        Hi jjm12345!
    Let's look into this! When did the issue begin? When you press shift, does the letter change to uppercase?
    Thanks,
    AyaniB_VZW
    Follow us on Twitter @VZWSupport

  • Use of upper or lower case in expression editor

    Hello All,
    Is it possible to use uppercase or lowercase function within el expression? I am trying to ignore case while showing/hiding field. I tried this #{lower(bindings.id.attributeValue)=='something'} and it erroed out.
    Thanks,
    Dipal

    Hi,
    You may probably try using JSTL function "toLowerCase( String v)" to convert the string to lower case.
    Steps:
    - Add JSTL Functions Tag Library to the project
    - Add JSTL functions namespace to the jspx page:
    Eg. xmlns:fn="http://java.sun.com/jsp/jstl/functions"- Change your EL to
    #{fn:toLowerCase(bindings.id.attributeValue) eq 'something'}Sireesha

  • Is there a way we can edit and improve existing youtube videos by using premiere pro? Just simple changes like having professional looking opening and closing credits?

    Is there a way we can edit and improve existing youtube videos by using premiere pro? Just simple changes like having professional looking opening and closing credits?

    Assuming you do not have access to the "original" video/project and the YouTube video is the only copy, there is a method. Try "YouTube Downloader" which is a free software that allows you to download clips from YouTube as .mp4 files. You can then edit with Premiere, and re-encode again for upload to YouTube. Just keep in mind that you are re-compressing the video so there will be some quality loss. The better the quality of the original, the better the copy will hold up.
    Thanks
    Jeff Pulera
    Safe Harbor Computeres

  • I,m using macbook pro retina, I have changed the language to Arabic but still I find that password and downloading are coming in arabia

    I,m using macbook pro retina, I have changed the language from arabic to Endlish through system preference, but still I find that password and downloading are coming in arabia, when I start my computer it show password request in Arabic.

    http://support.apple.com/kb/ht4102

  • How to use the prompted value in the filter expression

    Hi
    Is it possible to use the prompted value in the filter expression?
    My requirement is that user will be prompted for a date field and I need to filter the records such that the records are displayed for the last 5 weeks from the date entered by the user.
    If somehow I know how to use the prompted value in the filter expression then this requirement is easy to be done. If this is possible, please guide me?
    If there are other ways to acheive the desired results then please suggest.
    Thanks
    -Jaz

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • IPhoto suddenly doesn't seem to recognize my camera, and essentially freezes. The only thing that makes sense is that another person in my house imported using a different camera and that changed things somehow. Ideas?

    iPhoto suddenly doesn't seem to recognize my camera, and essentially freezes. The only thing that makes sense is that another person in my house imported using a different camera and that changed things somehow. Ideas?

    Hi There!
    The camera is a Panasonic Lumix. I don't have a USB card reader. I did try and different port although not a different cable.
    I did remember one additional thing. I plugged my camera in at work to a PC. It was after that, when I came home, that the iPhoto wasn't working when I connected my camera to our iMac/iPhoto at home. I think this may have caused the problem.
    Cheers!

  • How can I set up a wi-fi network, using one time capsule and two airport express

    how can I set up a wi-fi network, using one time capsule and two airport express ?
    The time capsule is near the Mac. ok
    The first Airport is on the corridor, ok, works well and the App on the iPad signals so, ok
    But when I plug the next Airport on another room nearby nothing happens, and signals disconected ....
    is the signal so weak that is not able to go to ono room to the other ?

    Well, even if you have the first express set up to extend the network, the second express can only extend from the TimeCapsule.
    Maybe you got walls of sheetrook in the way, or kitchen/bathroom tiles, etc, dampening the signal rapidly.

  • I changed language from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US? in English

    I changed language (based on an answer in this forum) from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US?
    Should I just export my bookmarks, uninstall and reinstall the proper version? That may just be shorter than anything else.

    GREAT!. Thanks a lot for educating me. There seem to be a million things we have to learn about our computers and when we run into them the first time they seem insurmountable. You pointed me to the solution. Thanks again. Ben

  • I have changed my e-mail address and therefore need to change my apple ID. When I change it to my new address it says it is already my rescue address and cannot be used. Any ideas how to change my rescue address?

    I have changed my e-mail address and therefore need to change my apple ID. When I change it to my new address it says it is already my rescue address and cannot be used. Any ideas how to change my rescue address?

    To change the iCloud ID ("email address") you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • IOS 5 used to allow Airplay between iPad (WiFi) and Apple TV (Ethernet) as long as they were on the same network. In iOS 6, now both the iPad and the Apple TV have to be on the same network and both have to be connected using WiFi ? Why did they change ?

    iOS 5 used to allow Airplay between iPad (WiFi) and Apple TV (Ethernet) as long as they were on the same network, i.e. connected to the same wired/wireless router. In iOS 6, now both the iPad and the Apple TV have to be on the same network and both have to be connected using WiFi ? Why did they change this ? Means that the iPad and the Apple TV box both have to be in range of the wireless router when this wasn't a restriction before. Apple TV could be anywhere as long as it was connected to the same wireless router via ethernet cable. Seems like an unnecessary thing to restrict.

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

Maybe you are looking for