Forum Discussion
Filtering from Many side to One without Cross Filtering
- 5 years ago
Hi Anonymous ,
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?
So I feel very strange about your statement, please provide a sample .pbix file.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.⚡
I am not looking to Sum the Abuse/Not Column,
I am looking to use this as a Slicer to filter my tabular visual,
- amitchandak5 years agoSuper User
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
- Anonymous5 years agoNot applicable
- Anonymous5 years agoNot 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))
ReturnSWITCH(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 0but when i am selecting blank(), i am getting empty table
is there anything wrong in my measure??