Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18140

Totals combining sums from two different fact tables: 'Estimates' and 'Sales'?

$
0
0

I have two tables. Table 1 contains individual information. Table 2 contains the Goal information and I am trying to figure out the % to goal. the tables are joined on Year.
Table1                                       

Name ResidencyYear
Tom Y2018
PaulY2017
HarryN2018
MaryN2018
JaneN2017
DonnaN2018

Table2

YearActiveGoal
2018Y100
2017N20

 

I create a measure to count the number of Residents = Y

Measure1 :=Countx(table1, table1[residency]="Y").

What I want to do is filter measure1 by year and use the goal for that year's goal as the denominator.

I created a measure2 that sums the goals in the hope that the slicer would reference the correct goal. - It didn't work.

Measure2 := sum(table2[Goal])

 The calculation I'm going for is Measure1/measure2 and measure2 will be the the goal for the year.

 

Any help is greatly apprecaited.

 


Viewing all articles
Browse latest Browse all 18140

Latest Images

Trending Articles



Latest Images

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