Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Dynamic multi-row formula

$
0
0

Hey all, I'm fairly new to the tool but love it so far.  There's a problem I think I can solve using the multi-row formula tool, but I can't put the last piece together.  I'm looking to transfer stock from some of our company's locations to other locations.  I already have data for who has stock and who needs it, but I want to be able to dynamically generate the transfers (i.e. DFW sends 4 units to MIA, JFK sends 3 to ORD, etc.). I'm doing a many to many join, which gives me every possible combination of transfers.

 

I need two running totals: one for how much stock a location still has and one for how much stock a location still needs.  The one I can do because I can sort first and then look at the previous record, but how do I do it for the second running total? I need to be able to look for the last record for a given station, which won't be the previous row or a set number of rows up.

 

Thanks for the help!


Viewing all articles
Browse latest Browse all 4999

Latest Images

Trending Articles



Latest Images