Forum Discussion

Anya_T's avatar
Anya_T
Frequent Visitor
5 years ago
Solved

Column Creation

Hi,

 

I want to create a new column, which should show the manager value. Sharing my expected column,

 

AssociateManager ClientExpected column
a1b2
b2b2
c3c3
d3d3
e4f2
f2f2
g1g1
h4h4
i2xNA/Null
j1yNA/Null
k4zNA/Null

 

As per above result in 1st row the new client is 'b' who is under manager '2'. So as per this the value of new column should become '2' but is showing the same value of manger as '1'.

The other condition should be if there is new value in client column then it should not print any value(NA/Null) in new column.

 

But what i am getting is,

 

AssociateManager ClientResul column
a1b1
b2b2
c3c3
d3d3
e4f4
f2f2
g1g1
h4h4
i2x2
j1y1
k4z4

 

Please help and advice what to do in such cases?

 

  • Anya_T 

    you can try this

    Column = maxx(FILTER('Table','Table'[Associate]=EARLIER('Table'[ Client])),'Table'[Manager])

4 Replies

  • Anya_T 

    You can use LOOKUPVALUE function:

    Expected = LOOKUPVALUE(Table1[Manager],Table1[Associate],Table1[ Client])

     



    • Anya_T's avatar
      Anya_T
      Frequent Visitor

      Hi, thank you for replying.

      I tried but getting an error. How can i rectify it?

      Sharing screenshot.

      user_id= Associate

      manager_id= Manager

      Associate= ClientCreate Column

       

      • ryan_mayu's avatar
        ryan_mayu
        Super User

        Anya_T 

        you can try this

        Column = maxx(FILTER('Table','Table'[Associate]=EARLIER('Table'[ Client])),'Table'[Manager])