I have a function that calculates the difference between rows (based on the same columns) in 2 datasets. Here is a sample and function
################# ##