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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How can visuals, slicers and filters only display Dim values where key exist in FACT

Hi Community –

I’m sourcing salesforce objects, including a User object (aka dimension table) with a system generated primary key / id, username, …

 

Some of those users are salespersons and their ids are foreign keys in FACTs (like Opportunities).

 

If relational, I could write custom SQL to source only salespersons (performance permitting).  But since my source is cloud, can I use Power Query M or DAX so that visuals, slicers & filters only display the ~2 dozen salespersons’ names and not all 100+ names of SFDC users?

 

Thanks, Clay

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on description, you may create a calculated table which use Distinct(Dim values) and then put the column into the slicer. However, It will cause the issue when the range of Slicer is less than the range of fact table. Here is an example, the slicer can't filter the date range larger than its range. It is suggested that you use the larger range in the slicer.

c1.png

 

If I misunderstand your thought, please show me your smaple data and expected result. Do mask sensitive data before uploading, I am glad to solve the problem for you.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

So, the behavior for visuals changes  by toggling "Show items with no data" which I do need for the 1st visual I built but not a subsequent visual I copied.  Still have the issue of slicers and filters displaying all Dim values not just those that exist in FACT.  thanks Clay

amitchandak
Super User
Super User

If its an import (Not direct query). Bidirectional join can help.  In case of direct query bidirectional join can be costly.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks Amit.  Sourcing is import.  Relationship is already Cross filter direction = Both.  Changing the direction &/or "Applying Security" appears not to have any impact on the dim values in slicers, filters or visuals.  The relationship with Cross filter direction = Both still behaves like an outer join.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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