Forum Discussion

Jeffreyjar's avatar
Jeffreyjar
Icon for Helper II rankHelper II
4 years ago
Solved

How can I update column with a new calculated column

Hello,

Hello, 

 

I'm kind of new in power bi so im doing small projects to perform myself,

 im doing a ranking of each agents of a company and each agent has his own code and it is changing every time  

I have an issue on matching 2 columns in different tables. One is up to date, the another one is old

 

Need help asap

 

the new column (calculated) is "New Agents Codes" of the table "agent list"

New Agents CodesEAAGTNAME
A79901001ATSOL NDONGO NATHALIA
A19999062LIENOU GAYAP GHISLAINE
A39908001DITONE ARNAUD THEOPHILE
B49903001KENFACK DONFACK WILLIAM JOSPIN
A19999063ROMAY-BELL EDINGA ESSENGUE D

 

the old column is "Numero Agents" of the table "APE February"

Numero AgentsNoms Agents
93003408KENFACK DONFACK WILLIAM JOSPIN
32699002ATSOL NDONGO NATHALIA
32599157ROMAY-BELL EDINGA ESSENGUE D
32599171LIENOU GAYAP GHISLAINE
32402304DITONE ARNAUD THEOPHILE
26499045FOTSO MEMO EPSE FOTSO C.
26499008MOYUE FRANCOISE LADOUCE

 

NB: I need to match those new codes(numbers) of the table 'agent list' (it is up to date) with those old codes of the table 'APE february' , so that we could have a result of one column with updated columns  

 

kind regards

  • ryan_mayu's avatar
    ryan_mayu
    4 years ago

    Jeffreyjar 

     

    pls try with maxx

     

    Column = MAXX(FILTER('agent list','agent list'[EAAGTNAME]='APE 01 2022'[Noms Agents]),'agent list'[EAAGENT])

     

     

9 Replies

  • Jeffreyjar 

    not clear about this. 

    new column (calculated) , what's the DAX?

    I can't see any column can match in table agent list and APE February.

    Could you pls provide the expected output based on the sample data you provided?

  • ryan_mayu 

     

    Sorry the expected output for the table APE february is 

     

    Numero AgentsNoms Agents
    B49903001KENFACK DONFACK WILLIAM JOSPIN
    A79901001ATSOL NDONGO NATHALIA
    A19999063ROMAY-BELL EDINGA ESSENGUE D
    A19999062LIENOU GAYAP GHISLAINE
    A39908001DITONE ARNAUD THEOPHILE
    • ryan_mayu's avatar
      ryan_mayu
      Icon for Super User rankSuper User

      Jeffreyjar 

      have you tried to use LOOKUPVALUE?

      now I get the output,, however it is the same as the table you proivded in your first post. Could you pls provide the sample data?

  • the expected output must be like this in ape february table, i've created a new column

    Numero AgentsNoms AgentsAgent New Codes 
    93003406KENFACK VOUTSOP LEOPOLD GILDASB49903001
    32699002ATSOL NDONGO NATHALIAA79901001
    32599157ROMAY-BELL EDINGA ESSENGUE DA19999063
    32599171LIENOU GAYAP GHISLAINEA19999062
    32402304DITONE ARNAUD THEOPHILEA39908001

     

    However, i've tried to use lookupvalue

    Agent New Code = LOOKUPVALUE('agent list'[New Agents Codes],'agent list'[EAAGTNAME],'APE 01 2022'[Noms Agents])
     
    but it is not giving the result that i want
    • ryan_mayu's avatar
      ryan_mayu
      Icon for Super User rankSuper User

      Jeffreyjar 

       

      pls try with maxx

       

      Column = MAXX(FILTER('agent list','agent list'[EAAGTNAME]='APE 01 2022'[Noms Agents]),'agent list'[EAAGENT])