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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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