Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jc508
Frequent Visitor

Restricting dimensions to used values

Hi,
I am using Power BI over an SSAS Tabular model.
We have several generic dimensions, like Nationality, which usually come from standardised data sets and have many entries.
Any particular fact table only uses a few of these.
For example there are 120 Nationalities listed but our staff come from only 20 of these.
How can I restrict the list of dimensions available in slicers to just the 20 that are used ?
This could be in either the SSAS or the Power-BI areas.


Any ideas appreciated

JC

 

3 REPLIES 3
jc508
Frequent Visitor

Here is a solution I found.
To SSAS The tables setup in Visual Studio are actually views of objects dimensions in the data database
so I changed the views to include an addition to the where clause
     AND dds_code_sk in (select distinct Nationality_sk from [Data].FACT_FT
ie where the key is actually in use on the Fact.
Now only used values appear in the dimensions of the cube

Its not efficient I am sure but it works!

 

JC

v-chuncz-msft
Community Support
Community Support

Hi jc508,

 

Actually, you can create a dataset storing nationalities in PowerBI and create relationship between your data. Then use this as Slicer. Try it and let me know if it helps.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sam,

thanks for the thought and sorry for the delayed response (I actually got some holidays!)

 

I think your idea kind of hurts the idea of shared / conformed dimensions especially when they come from external sources.

 

JC

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.