Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculating a measure based on a column in a different table



The following measure successfully calculates the cumulative CO2 emissions per building present in my data model, based on electricity and gas usage of each building. The buildings are in a different table than the measure, and so are their square meters of floor area.


Cumulative CO2 Emissions Year per Building = 
 MONTH([Date ]) < MONTH(TODAY());
 ElectricityTelemetryData[Cumulative CO2 Emission Electricity Year]+GasTelemetryData[Cumulative CO2 Emissions Gas Year];


Now I want to divide this measure by the square meters that belong to each building. Strangely enough, the following DAX code doesn't work, and it gives the message "The column 'Buildings[HouseSizeInSquareMeters]' either doesn't exist or doesn't have a relationship to any table available in the current context." Even though the tables ARE related, albeit indirectly, and I have already tried switching cross-filter directions of relationships from single to both.


Cumulative CO2 Emissions Year Per Building per m² = 
	'MetaUtilityTypes'[Cumulative CO2 Emissions Year Per Building];

Hope somebody can help!




Kind regards,




Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.