Forum Discussion
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
- Greg_DecklerCommunity Champion
Anonymous Maybe:
What I Want = MAXX(FILTER('Table',[Product]=EARLIER([Product])&&[StockDate]=EARLIER([SalesDate]&&[Customer]=EARLIER([Customer])),[Stock]) - amitchandakSuper User
@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])- AnonymousNot applicable
Hi Greg_Deckler I was testing the qurey but seems is saying to me that the parameter is not correct type.
Hi amitchandak I think we are close 🙂 but only is showing one result or maybe only is taking the first one.
Attached the link with the powerbi document. Whith both querys.
I hope yu can help me thanks.
- AnonymousNot applicable