Hello,
Is there a way to create CUBE like joins from different datasets?
i.e. We do not have a formal data warehouse/OLAP CUBE.
We do have (example) 2 different data sources:
(1) Positions - This is how many shares we currently own. i.e.
IBM -- 100 Shares
MSFT -- 200 Shares
These are our current positions which are made up of one or more transactions.
(2) Transactions - These are the transactions which make up the 100 shares of IBM and 200 shares of MSFT from (1).
IBM -- 1/1/15 - BUY 70
IBM -- 1/1/17 - BUY 30
MSFT -- 1/1/15 - BUY 120
MSFT -- 1/1/17 - BUY 80
So, as you can see from the transactions -- if we SUM the transactions by ticker we get 100 for IBM and 200 for MSFT. This matches what we have in the positions table. So, we can reconcile that the SUM(Transactions) = Positions.
But, if we just do a LEFT JOIN then it will duplicate the positions for as many transactions as we have. We want to display the (summarized) positions data -- then click into it and show the transactions -- without duplicating the position data. Is this possible?
Thanks,
Dan