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
Yagevendra
Helper IV
Helper IV

Cross Filter Relationship..

Hi All,
I have one senerio where i have 1 fact table and 4 dimaintion table with single to many relationship, i have used crossfilter function with the calculate function and trying to filter.

Yagevendra_0-1632132638060.png

 


filter 1 table to filter 2 table (Both table connected with fact table) It was working good when i put my measure to VIsual level filter.

But the problem is my table filter 1 and, filter 2 apply to another visual also and inside the values in filter tables might not be for visual 1 or some values are not be applicable for visual 2.
i have created 2 different measure for both visual and applied the same cross filter on it and put it on visual level filter.

When i tried to filter "filter 1" table and select one value which is for visual 2 but the 2nd filter shown me only blank becasue this value not applicable for 1 visual.
Atteched screenshot here

Yagevendra_1-1632132973469.png

Yagevendra_3-1632133099071.png

Yagevendra_4-1632133228792.png

 


Need help to resolve it.

4 REPLIES 4
MFelix
Super User
Super User

Hi @Yagevendra ,

 

When you use the crossfilter what happens is that your data is filter from anyside of the relationship so in this case when you use filter1 your Data table gets filter by that filter and then the Data table filter out the other 3 tables so you only get the values that are withing the lines selected on the filter1.

 

 

Whats is the purpose of this calculation can you please share some more information and expected result?

 

if you can please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix my purpose is that i don't want to use both directional relationship because i will receive more fact file in future to connect with this same lookup files.
As i mentioned in above comment i used cross filter function instead of both directional relation.
Both direction relationship results are good when i select filter 1 the filter2 will change and show me the correct output for metric 1 and metric 2 these are the different charts as you can see on my above screenshot.
Here is my sample data.

DateFilter 1Filter 2Filter 3Filter 4MetricGraph namevalue
111021011APP1
211021022BTT2
311031033CTT1
121021021DTT1
221031032ATT1
321011013BPP2
421051054CPP2
131011011DPP1
231031032CPP2
231041043BTT1
431051054BPP1
531021022CTT2
731061064DPP1
731071072CTT2
841081081DTT1
841011013DTT2
111011011APP1
211021022BTT2
311031033CTT1
121021021DTT1
221031032ATT1
321011013BPP2
421051054CPP2
131011011DPP1
231031032CPP2
231041043BTT1
431051054BPP1
531021022CTT2
731061064DPP1
731071072CTT2
881081081DTT1
881011013DTT2

Filter 1 have some values when i select 8 from filter 1 the expected output is 108 and 101 for chart 2 (TT) but the problem is that i put my both measure which i have created with cross filter function in a filter 2 filter pane for enable cross filtering effect.

I have to put both measure becasue same filter working for both chart
when i remove chart 1 measure from filter pane it will working fine and give the result as i expected and some filter applicable for chart 1 only it will not show me the value in filter 2. thats the problem
Both directional relationship output is working but the cross filter function not may be i used wrong approch. 
can you please help me?

Can you please tell me what are the values in the Filter tables, are they the ones in the columns on the data you have sent or something else? I see two columns for each of the filter tables.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix Hi,
Actually i have 4 filter table filter 1, 2, 3 and 4 with same key as i mentioned in data table.
Filter table 1

Filter 1Name
1Hotstar
2Prime
3BBC
4Netflix
8Star

Filter table 2

Filter 2Name
101A
102B
103C
105D
104E
106F
107G
108H

Filter table 3

Filter 3Name
101 
102 
103 
105 
104 
106 
107 
108 

Filter table 4

Filter 4Name
1TV
2Tablet
3PC
4Mobile

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.