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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.