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
Titatovenaar2
Helper III
Helper III

DAX: Show only available Filter Options without Cross-Filter Direction

Hi guys,

 

I want to be able to have a list of filter options that are available in another related table.

 

This is the model I use:

Titatovenaar2_1-1623335544695.png

 

As you can see below there are in the Dimension 8 ID's total (1,2,3,4,5,6,7,8)

While in the Fact there is only (0,1,2,3,4,5).

 

 

I only want to see 1,2,3,4,5 instead of 1,2,3,4,5,6,7,8

Titatovenaar2_0-1623335437013.png

With Crossfilter direction to 'both' I get the result I want, like below:

Titatovenaar2_2-1623335571861.png

Titatovenaar2_3-1623335591630.png

Unfortunately, the model I'm working on won't allow me to set it to crossfilter direction 'both', and also, it is widely discouraged online to set the crossfilter direction to 'both'.

 

Any suggestions how to deal with unavailable filter options using maybe Measures / CalculatedTable / CalculatedColumns to filter the filter itself?

 

Kind regards,

Igor

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Titatovenaar2 , if you want to reduce the value of the dimension slicer or table, you can add a visual level filter and check a measure from fact is not blank 

View solution in original post

2 REPLIES 2
Titatovenaar2
Helper III
Helper III

Oops.. ;). Thanks!

amitchandak
Super User
Super User

@Titatovenaar2 , if you want to reduce the value of the dimension slicer or table, you can add a visual level filter and check a measure from fact is not blank 

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.