Forum Discussion

MBBIUser's avatar
MBBIUser
Regular Visitor
4 years ago
Solved

Nested IIF statement in Report Builder linked to SSAS data source

Hi,

 

I am trying to add a calculated member with the following logic - IIF( [Client].[Client Number] NOT IN 028193, 093386, [Client].[Client Type]=62, [Client].[Client Number] IN 028193, 093386). The purpose is to combine certain client numbers and client type which are two distinct fields and report builder doesn't offer "OR" functionality.

 

The logic reads if client not equal to 028193 and 093386 then use client type = 62, otherwise, show those two clients.

 

But I don't know how to do it correctly. If  you have any suggestions, please help. Thank you for reading this!

 

 

  • I found what I needed in google search. No need to respond to this post anymore. Thanks.

7 Replies

    • MBBIUser's avatar
      MBBIUser
      Regular Visitor

      I need something like this returned. Client numbers, to be specific. 

       

      P.S.: that is good to know it is not DAX and MVB instead. Thanks! 🙂

       

      ClientSubsectorClient Type
      28193Education62
      26203Pharmaceuticals  
      216340Marijuana Producers 
      83258Nondurable Household Products 
      93386Education62
      85516Food Products 
      212315Medical Supplies 
      26389Education62
      63511Legal Services 
      211931Medical Supplies 
      210124Biotechnology 
      212809Pharmaceuticals  
      208198Medical Equipment & Services / Medical Supplies (20102015) 
      213387Chemicals / Chemicals: Diversified (55201000) 
      200700Personal Products 
      19427Medical Supplies 
      13670Medical Equipment 
      23685Specialty Chemicals 
      211480Chemicals / Chemicals: Diversified (55201000) 
      25416Specialty Chemicals 
      217553Chemicals / Specialty Chemicals (55201020) 
      92012Education 
      217522Chemicals / Specialty Chemicals (55201020) 
      20871Education62
  • MBBIUser's avatar
    MBBIUser
    Regular Visitor

    I found what I needed in google search. No need to respond to this post anymore. Thanks.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MBBIUser ,

    What is the logic of the calculated member and what is the final result you want? The logic is to combine client number and type 62 if the client number is not 028193 and 09338, otherwise, the original client number (028193 and 09338) is displayed? If you have the following table data, what is the final result you want to display?

    In addition, you can refer the following links to get it.

    Decision Functions

    Writing Complex Expressions

    Best Regards

    • MBBIUser's avatar
      MBBIUser
      Regular Visitor

      I need client number returned. For the example you have here, I will need 028193, 093386, and 093387 with 028134. I need two values (client numbers returned).

       

      Would you happen to know if there is "OR" function in there that I could use instead?

       

      Thank you!