Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

IF/Or measure

Hi I'm trying to create an if formula that will select one of three measures (IA Target, AA Target or NLP Target) depeding on certain critea

 

Table: WFE; Column: Busness Unit & Title

If (WFE[Business Unit]="International", IA Target

 

But if the 

IF(WFE[Business Unit]=America, &&(WFE[Title]= "Associate" or "Senior Associate",  AA Target, NLP Target) 

 

I'm not quite sure how to write the measure

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hii Anonymous ,

    Please let me know whether the following measure helps you or not.

    Target =
    IF (
        SELECTEDVALUE ( 'Table'[Bussiness Units] ) = "International",
        "IA Target",
        IF (
            SELECTEDVALUE ( 'Table'[Bussiness Units] ) = "America"
                && SELECTEDVALUE ( 'Table'[Title] ) = "Associate"
                || SELECTEDVALUE ( 'Table'[Title] ) = "Senior Associate",
            "AA Target",
            "NLP"
        )
    )
     
    I've got the folowing output :-

     

7 Replies

  • Hi Anonymous 
    Try this :
    if (Max(WFE[Business Unit])="International", IA Target,

    iF( max((WFE[Title])= "Associate") || max((WFE[Title])= "Senior Associate" && max(WFE[Business Unit])="America",  AA Target, NLP Target) .
    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

     


  • Anonymous's avatar
    Anonymous
    Not applicable

    Hii Anonymous ,

    Please let me know whether the following measure helps you or not.

    Target =
    IF (
        SELECTEDVALUE ( 'Table'[Bussiness Units] ) = "International",
        "IA Target",
        IF (
            SELECTEDVALUE ( 'Table'[Bussiness Units] ) = "America"
                && SELECTEDVALUE ( 'Table'[Title] ) = "Associate"
                || SELECTEDVALUE ( 'Table'[Title] ) = "Senior Associate",
            "AA Target",
            "NLP"
        )
    )
     
    I've got the folowing output :-

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous  Thank you it worked

      • Anonymous's avatar
        Anonymous
        Not applicable

        I am glad it did..!!