Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

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.

 


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

 


Need help to resolve it.

4 Replies

  • Hi Anonymous ,

     

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      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?

      • MFelix's avatar
        MFelix
        Super User

        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.