The quickest way, if your requirement and data are this simple, is to blend your data using Power Query (Get & Transform Data).
Format your source data as tables - I named them tblPurchase and tblIncome, respectively. Then you can use a query like this to blend the data:
Close and load to Data Model, then you can create pivot table(s) as required.
You can then add a Measure to your Data Model, to calculate the variance dynamically:
See sample workbook: xlf_1297276_simple.xlsx
If you needed to handle more complex calculations / filtering, then I'd recommend loading Income and Purchase data to separate tables in your data model, and creating a "People" dimension table, with relationships to both those fact tables....
See worked example: xlf_1297276_powerpivot.xlsx
Bookmarks