Assume I have Table A with following structure:
Date | Channel | Device | Sessions |
5/1/2016 | Organic | Desktop | 10 |
5/1/2016 | Organic | Mobile | 5 |
5/1/2016 | Organic | Tablet | 5 |
5/2/2016 | Organic | Desktop | 15 |
5/2/2016 | Organic | Mobile | 10 |
5/2/2016 | Organic | Tablet | 5 |
I also have Table B with following structure:
Date | Channel | Impressions |
5/1/2016 | Organic | 100 |
5/2/2016 | Organic | 200 |
My objective is to aggregate all the sessions from Table A into Table B, with the following output:
Date | Channel | Impressions | Sessions |
5/1/2016 | Organic | 100 | 20 |
5/1/2016 | Organic | 200 | 30 |
As I am still very new to Power BI, I give a similar SQL expression as I would do it using this language: SUM(Sessions) FROM Table A GROUP BY channel.
Note that in the real data there are multiple different values for channel, and therefore I cannot just do a WHERE clause. Thanks!