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
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
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.