Forum Discussion
DAX query with filter from parallel dimension table
- 8 years ago
Hi DSP,
I'm not sure if we're using different Adventureworks databases. I have tested with AdventureWorksDW2014 and AdventureWorksDW2012. And there is a relationship between DimCustomer and DimGeography with the GeographyKey column.
And I can use the formula below to create the summarize table. :smileyhappy:
Table = SUMMARIZE ( FILTER ( DimCustomer, RELATED ( DimGeography[EnglishCountryRegionName] ) = "Canada" ), DimCustomer[LastName-FirstName], "Sales", [Total Sales] )Regards
Hi DSP,
I'm not sure if we're using different Adventureworks databases. I have tested with AdventureWorksDW2014 and AdventureWorksDW2012. And there is a relationship between DimCustomer and DimGeography with the GeographyKey column.
And I can use the formula below to create the summarize table. :smileyhappy:
Table =
SUMMARIZE (
FILTER (
DimCustomer,
RELATED ( DimGeography[EnglishCountryRegionName] ) = "Canada"
),
DimCustomer[LastName-FirstName],
"Sales", [Total Sales]
)
Regards
Many thanks for that.
The table relationships were indeed set up as per your diagram - which I'd somehow failed to notice!