Forum Discussion
Trying to link two different postcode columns to lookup table
- 3 years ago
I've been able to get to a solution that seems to work.
This way I created a custom applications measure using INTERSECT (syntax below). The Applications and Postcode tables are linked on the School postcode in the data model, so I can use this measure in the report that describes applications by region based on Student postcodes.
Applications (Student Postcode) =CALCULATE(SUM([Applications],ALL('ApplicationsTable'[Student Post Code]),INTERSECT(VALUES('ApplicationsTable[Student Post Code]),VALUES('PostCodeLookupTable'[Post Code])))
What level of UK 'Region' are you looking for? I'm sure there will be an easier way than importing the massive UK postcodes table.
I've been able to get to a solution that seems to work.
This way I created a custom applications measure using INTERSECT (syntax below). The Applications and Postcode tables are linked on the School postcode in the data model, so I can use this measure in the report that describes applications by region based on Student postcodes.