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

Different Calculations

$
0
0

Hello,

 

I have some calculations I try to recreate within DAX, but without success yet.

 

My table strucutre is:

 

1.PNG

 

 

 

 

 

 

 

 

 

 

 

This table is the starting point:

 

2.PNG

 

 

 

 

 

The entire proplem is that I don't consider 2016, it's the only year, which is out of scope.

So each calculation needs some kind of restriction to "all years, but 2016"

 

The first calculation is:
Average Total GGE = Total GGE (2008 - 2015) / Total Amount of Products (2008 - 2015)

 

My approach is:

Average Total GGE = 'GGE Amounts'[GGE in kg CO2e] / IF(RELATED('Models'[Release Date]) <> 2016; DISTINCTCOUNT('Models'[Product]))

 

But this only bringt the total GGE by considering all years.

 

Changing the condition (<>2016) does not affect anything.

 

I'm very thankful for any help.

 

Thanks and Regards,

Chris


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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