Hello,
I have some calculations I try to recreate within DAX, but without success yet.
My table strucutre is:
This table is the starting point:
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