Hello,
Common problem I would want an advice...
let says we have a dimension table 'DimCity' and a table 'Fact',
linked together by cityID.
* City contains 100 000 cities (city id, city name)
* Fact only use 2 000 cities.
When I put all of that in the model, and create a pivot table, and a slicer on city, I want to only see my 2 000 cities, not the 100 000 in the slicer...
How could I reduce the dimension data to only the relevant used cities ?
I know I can use power query to transform the' DimCity', but in most complex cases, it is an extra effort that could be major...
To compare, I manage easily to do that in Qlikview with just 1 instruction in the load script.
So I'm wondering if there is any trick I could do in the model or DAX or whereever, to reduce the dimension based on values really used in the fact table.
Thank you !
Common problem I would want an advice...
let says we have a dimension table 'DimCity' and a table 'Fact',
linked together by cityID.
* City contains 100 000 cities (city id, city name)
* Fact only use 2 000 cities.
When I put all of that in the model, and create a pivot table, and a slicer on city, I want to only see my 2 000 cities, not the 100 000 in the slicer...
How could I reduce the dimension data to only the relevant used cities ?
I know I can use power query to transform the' DimCity', but in most complex cases, it is an extra effort that could be major...
To compare, I manage easily to do that in Qlikview with just 1 instruction in the load script.
So I'm wondering if there is any trick I could do in the model or DAX or whereever, to reduce the dimension based on values really used in the fact table.
Thank you !