Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Aggregate Values from Table A into Table B

$
0
0

Assume I have Table A with following structure:

 

DateChannelDeviceSessions
5/1/2016OrganicDesktop10
5/1/2016OrganicMobile5
5/1/2016OrganicTablet5
5/2/2016OrganicDesktop15
5/2/2016OrganicMobile10
5/2/2016OrganicTablet5

 

I also have Table B with following structure:

 

DateChannelImpressions
5/1/2016Organic100
5/2/2016Organic200

 

My objective is to aggregate all the sessions from Table A into Table B, with the following output:

 

DateChannelImpressionsSessions
5/1/2016Organic10020
5/1/2016Organic20030

 

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!


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>