cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Disable cross filter direction DAX

Hi,

 

I have relationship like this ( I need to have cross filter direction set to "both")

ss1.png

I have report with date slider and when it is not fitered I get data like this

ss2.png

But when I filter the data with slider I do not see any more all the customers.

ss3.png

I know that it is possible to see all the customer when I have Cross filter direction set to "Single" and on values "Show items with no data"  selected.

ss4.png

Is it possible to get something like this on last image but keeping cross filter direction to "both"?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Disable cross filter direction DAX

Hi @difolt,

 

Then I think to create a calculated table should be the only way.

 

Regard,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

6 REPLIES 6
Highlighted
Super User IX
Super User IX

Re: Disable cross filter direction DAX

Might be able to get there using an ALL to override. 


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: Disable cross filter direction DAX

@Greg_Decklerthank you for respons. I did it like this with ALL. I addded new DAx table and new cross fileter single connection ss5.pngss6.png

And I get it OK, but I was wondering is there a way to do that without creating new DAX table ?

Highlighted
Community Support
Community Support

Re: Disable cross filter direction DAX

Hi @difolt,

 

Or you can inactive the relationship between the tables and use the USERELATIONSHIP to work around.

 

Measure = CALCULATE(SUM(sales[Quantity]),USERELATIONSHIP(sales[Customer id],Customer[ID]))

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Highlighted
Frequent Visitor

Re: Disable cross filter direction DAX

thank you @v-frfei-msft but puting inactive relationship is not a good option for me.

Highlighted
Community Support
Community Support

Re: Disable cross filter direction DAX

Hi @difolt,

 

Then I think to create a calculated table should be the only way.

 

Regard,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Highlighted
Regular Visitor

Re: Disable cross filter direction DAX

Hi,

you can change the crossfilter direction with the "crossfilter()" function. 

Try: Measure = Calculate(SUM(sales[quantity], Crossfilter(Sales[customer_id], customer[id], OneWay))

 

Best, 

Matthias

Helpful resources

Announcements
Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors