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

Percentage with 2 tables

$
0
0

Hi,

 

I have 2 tables with traffic data from 3 sites.

One with data by day, device and total PV on site.

datasitepvdevice
10-outa897238destkop
10-outa213124mobile
10-outb324324destkop
10-outb2342422mobile
10-outc3242342destkop
10-outc2342332mobile
09-outa7892316destkop
09-outa21469mobile
09-outb12634912destkop
09-outb12839mobile
09-outc12764381destkop
09-outc128498

mobile

 

Other with day, source, site, device and PV.

datasourcesitepvdevice
10-outab198destkop
10-outab219mobile
10-outac132destkop
10-outac453mobile
10-outba324destkop
10-outba423mobile
10-outbc321destkop
10-outbc43mobile
10-outca321destkop
10-outca43mobile
10-outcb4destkop
10-outcb56mobile
09-outab1destkop
09-outab213mobile
09-outac324destkop
09-outac3456mobile
09-outba4destkop
09-outba56mobile
09-outbc32destkop
09-outbc8mobile
09-outca8destkop
09-outca4mobile
09-outcb6destkop
09-outcb2mobile

 

I need have a % of traffic on one site came from other site.

For example % of traffic on site A came from site B. on this case (324+423+4+56)/(897238+213124+7892316+21469

 

How i can make this mesure?

 

I try create a aux column in 2 tables with day&site&device and related this aux column but with the mesure calculate(sum(table1[PV])/sum(table2[PV])) the power bi sum all valueson table 2 and not only  the values with same parameters.


Viewing all articles
Browse latest Browse all 216047

Trending Articles



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