Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Creating a measure that includes a lookup

Hello,   I am trying to create a measure that multiplies the total amount invested (plush a cash balance)  by a % limit based on another table.  The first image is the measure I've created that sho...
  • Anonymous's avatar
    Anonymous
    4 years ago

     I figured it out.

     

    The following code was what I needed:

    Available to invest = (CALCULATE(SUM(Data[Amount]),ALL(Data[Issuer]))
     
    +'Cash Balance'[Cash Balance Value])
     
    *LOOKUPVALUE ( 'Approved Names'[Limit], 'Approved Names'[Issuer], 'Measures List'[Selected Issuer])
     
    thank you