Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Help creating new column depending Date column

Hi all,

 

I need to create a new column due to the following scenario:

 
 

At the end is to move the cuantities one month less in the Sales Date. I was trying with Lookupvalue but it didn't work.

 

I hope you can help me thanks.

  • @romero01 , Try

    sumx(filter( Table, [Product]-earlier([Product]) && [Customer]-earlier([Customer]) && [StockDate]-earlier([SalesDate] ),[ventas])

    O
    sumx(filter( Table, [Product]-earlier([Product]) && [Customer]-earlier([Customer]) && [SalesDate]-earlier([StockDate] ),[ventas])

6 Replies