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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filtering from Many side to One without Cross Filtering

I have a table named Lead_ID containing following data

amitkumar93_0-1610542609684.png

 Another table named Emails contain following data

amitkumar93_1-1610542651142.png


the relationship goes by Emails (Email) (one side) -> Lead_id (EMail) (Many SIde)

I created following visual and slicer

amitkumar93_2-1610542781386.png


Now i want to filter the tablular visual by applying filter Abuse/not.
Since the relationship is one sided from Emails (Email) (one side) -> Lead_id (EMail) (Many SIde), i cant filter it out by selecting any value from Slicer,
I tried changing the relationship properties by changing the cross filter direction as both but it is not working in my original model,
which contain lots of other tables and there is a chance of  Ambiguous Model Error.

Is there anyother way of resolving this??

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

v-lionel-msft_0-1610696268970.png

As long as the "Abuse/Not" column is added to the table visual or there is an "Abuse/Not" column in the filter context of the matrix formula, the slicer can affect the table visual. 

Or is this what you want?

v-lionel-msft_1-1610697386067.png

So I feel very strange about your statement, please provide a sample .pbix file.

 

Best regards,
Lionel Chen

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

7 REPLIES 7
parry2k
Super User
Super User

@Anonymous if you still don't want to create a measure then you have to cross filter direction to both but the recommendation would be put as a visual level filter as @amitchandak  suggested.

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous you can force it by using crossfilter DAX function, use it in a measure like this

 

Measure = 
CALCULATE ( 
SUM ( Table[Amount] ),
CROSSFILTER ( Table[Id], Dim(Id], BOTH )
)

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

I am not looking to Sum the Abuse/Not Column,
I am looking to use this as a Slicer to filter my tabular visual,
 

@Anonymous , In slicer you can put a measure(in the visual level filter) from the many side of the table and check for not blank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

snipp.PNG

Anonymous
Not applicable

I created this measure and put in the visual level filter of the table and restricted as not blank

Count of Abuse =
Var Abuseas1 = CALCULATE(COUNT(Lead_ID[Abuse/Not]),FILTER(Lead_ID,Lead_ID[Abuse/Not]=1),CROSSFILTER(EMails[Email],Lead_ID[Email ],Both))
Var Abuseas0 = CALCULATE(COUNT(Lead_ID[Abuse/Not]),FILTER(Lead_ID,Lead_ID[Abuse/Not]=0),CROSSFILTER(EMails[Email],Lead_ID[Email ],Both))
Var Abuseas00r1 = CALCULATE(COUNT(Lead_ID[Abuse/Not]),CROSSFILTER(EMails[Email],Lead_ID[Email ],Both))
Var Abuseasblank = CALCULATE(COUNT(Lead_ID[Abuse/Not]),FILTER(Lead_ID,Lead_ID[Abuse/Not]=BLANK()),CROSSFILTER(EMails[Email],Lead_ID[Email ],Both))
Return

SWITCH(TRUE(),SELECTEDVALUE(Lead_ID[Abuse/Not])=1,Abuseas1,SELECTEDVALUE(Lead_ID[Abuse/Not])=0,Abuseas0,SELECTEDVALUE(Lead_ID[Abuse/Not])=BLANK(),Abuseasblank,Abuseas00r1)


I am getting values when i am selecting the slicer as 1 or 0

but when i am selecting blank(), i am getting empty table 
is there anything wrong in my measure??

Hi @Anonymous ,

 

v-lionel-msft_0-1610696268970.png

As long as the "Abuse/Not" column is added to the table visual or there is an "Abuse/Not" column in the filter context of the matrix formula, the slicer can affect the table visual. 

Or is this what you want?

v-lionel-msft_1-1610697386067.png

So I feel very strange about your statement, please provide a sample .pbix file.

 

Best regards,
Lionel Chen

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

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors