Forum Discussion

rs1249's avatar
rs1249
Helper I
3 years ago
Solved

How to conditional relate to another table

Dear all, Could someone help me with this please: I have two tables: "Detailed_Cust_Ledg" and "Cust_Ledg", they are linked by one to many relationship with Cust_Ledg[Entry_No]-> Detailed_Cust_Ledg[...
  • ryan_mayu's avatar
    ryan_mayu
    3 years ago

    rs1249 

    you can try this

    Column = 
     if(Deatiled_Cust_Ledg[Entry_Type]="Initial Entry",LOOKUPVALUE('Cust_Ledg'[Index],Cust_Ledg[Entry_No],'Deatiled_Cust_Ledg'[Cust_Ledger_Entry_No]))
    
    Column 2 = 
    if(Deatiled_Cust_Ledg[Column]="", maxx(FILTER('Deatiled_Cust_Ledg','Deatiled_Cust_Ledg'[Document_No]=EARLIER(Deatiled_Cust_Ledg[Document_No])&&Deatiled_Cust_Ledg[Entry_No]<=EARLIER('Deatiled_Cust_Ledg'[Entry_No])&&Deatiled_Cust_Ledg[Column]<>""),Deatiled_Cust_Ledg[Column]),Deatiled_Cust_Ledg[Column])
    

    pls see the attachment below