I have a Fact table – HHData which contains Electricity Consumption - and a dimension table – Emissions Factors containing conversion factors by year (2019 and 2020) for Greenhouse Gas emission. For a given year (or any month within it), I want to multiply the Consumption (kWh) by the conversion factor. I have set up a Key column in each of the tables (1 for 2019 and 2 for 2020 and related the tables using this. For completeness, there is also a Date table. I thought it would be easy but I am clearly missing something. I can only pick up the sum of the Factors (meaningless), the Min, Max, or Average.
Here is my model view.
The emission factor in Emissions Factors is column Value and the consumption in HHData is column kWh
I did send my PBIX. Did you receive it? These resources are very useful and, in fact, I have used them in the past but they don’t help me solve my problem.
Regards,
Denis
I have two tables (and a third = Calendar). The fact table is called HHData and contains kWh electricity consumption over a half-hour period over second half of 2019 and up to September 2020. The dimension table is called Emissions Factors and contains the Year and the Conversion Factor (value) for each year.
I need to multiply kWh from the HHData table by the correct Conversion Factor (value) for that year.
The tables are linked by Year. The measure Convertor is my attempt to use MAXX(FILTER) but it leaves the measure blank.
I attach my PBIX. Wilsons HH Data Analysis.pbix (341.0 KB)
Hope you can help.
Denis
Changed a couple of things, I’ll start off with those:
Marked your Calendar table as a Date table
The culprit was the Year column because that was actually a date and not an integer…
So I added a YearNum column and updated the relationship to HHData based on that column