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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mrvega
Frequent Visitor

Only show present values in slicer

Hi,

 

I have two tables with a relationshiop linked by SiteID.

 

When I build a slicer using SiteDescription, I ONLY want to see Website1, Website2 and Website3 (ie. values that have data). I have tried setting the relationship's cross-filter direction to 'Both', but I still see all SiteDescriptions appearing in the slicer. 

 

SiteIDValue
1#
2#
3#

 

SiteIDSiteDescription
1Wesbite1
2Wesbite2
3Wesbite3
4Wesbite4
5Wesbite5

 

Can anyone help?

Thanks

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @mrvega,

 

You could set the two table relationship to "1-*" (SiteID 1, 2, 3 as "*") and use the DAX below:

Column = RELATED('Table (2)'[SiteDiscription])

Use this calculated column as a slicer

 
 

Best Regards,

Liang 

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

 

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @mrvega,

 

You could set the two table relationship to "1-*" (SiteID 1, 2, 3 as "*") and use the DAX below:

Column = RELATED('Table (2)'[SiteDiscription])

Use this calculated column as a slicer

 
 

Best Regards,

Liang 

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.