Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter data based on another visual table

Hi, 

This seems pretty simple to do but for some reason I couldn't figure it out. I have 3 calculated tables as below and my goal is to have table B/C only show the Account CSN that's showing in table A. There's already a relationship created to connect these 3 tables by Account CSN (I created a bridge table to link these three tables) however it still didn't work as expected. 

Hope my description is clear enough. Thanks in advance for the help! 

 

 

5 Replies

  • AllisonKennedy's avatar
    AllisonKennedy
    Community Champion

    Anonymous 

     

    What does the data model look like? 

     

    Why have you created calculated tables? Can you just use Measures to calculate the Churn, Renew, New, etc.

     

    If you do that, then you can use the measures as Visual level filters. 

     

    Hope that helps a bit, please share the DAX for the calculated table and your data model relationships view if you need more help.

  • Anonymous's avatar
    Anonymous
    Not applicable

    AllisonKennedy thanks for your response. I created several calculated tables because there are different date columns in my raw data set. Basically, I had to group new measures by settlement start date and group expire measures by settlement end date. 

     

    So for table A, the DAX looks like: 

    CALCULATETABLE(SUMMARIZE(RAW DATA,
    RAW DATA[Settlement End Date],RAW DATA[Account CSN],"Expire",SUM(RAW DATA[Expire]))

     

    Table B:

    CALCULATETABLE(SUMMARIZE(RAW DATA,
    RAW DATA[Settlement Start Date],RAW DATA[Account CSN],"New",SUM(RAW DATA[New]))

     

    The data model relationship is quite simple, there's only one Account CSN (unique value) table to connect them all. Happy to provide more information or perhaps a sample pbix file if this is still not clear enough. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks AllisonKennedy! I was able to apply both cross filter direction in my data model and make it work.