Forum Discussion

lifer's avatar
lifer
Regular Visitor
6 years ago

Issues with relationships

Hi!

 

I have an issue with a dashboard, where i have 2 different tables with info that i need to be able to filter with 1 same filter.

 

I made a colum with exactly the same data to identify a data type that i have on both tables so i can make the conection between them, and it work, i was able to filter data from both tables with the same, lets say " data type " but when i try to filter that same data by date, wich both tables have a date colum with the same exact format and everything, im not able to filter both info with 1 date filter ... 

 

I hope i made my self clear .. but if there is any question please let me know

10 Replies

  • kentyler's avatar
    kentyler
    Solution Sage

    What sort of relationship do you have between the tables 1 to 1 or 1 to many or many to many ?

    Can you post a screen shot of some sample data?

    • lifer's avatar
      lifer
      Regular Visitor

      Hi kentyler  and Icey 

       

      Thanks for answering! here's some sample data: 

       

      I have create de relationship with the Custome column, and im able to filter by region, sub region and type, but when i try to filter by month, im not able to, since i have to pick up 1 date to filter, i only get the data from the table that i pick up the date to be filtered!

      Table 1    Table 2  
      Target SavingsDateRegionTypeSub RegionSV ID( Custome Column )   Total SavingsDateRegionSub RegionTypeBuyer NameBuyer CodeSV ID(Custome Column)
       $             500.001/1/2019NARecentUSUSRecent    $          488.001/1/2019NAUSRecentAlanC01USRecent
       $             200.002/1/2019NADelayedUSUSDelayed    $          198.002/1/2019NAUSDelayedChrisC02USDelayed
       $             300.003/1/2019NARecentCanadaCanadaRecent    $          324.003/1/2019NACanadaRecentCraigC03CanadaRecent
       $             150.004/1/2019SARecentMexicoMexicoRecent    $          451.004/1/2019SAMexicoRecentJosephC04MexicoRecent
       $             200.005/1/2019SADelayedArgentinaArgentinaDelayed    $          241.005/1/2019SAArgentinaDelayedJoeC05ArgentinaDelayed
       $             150.006/1/2019SADelayedMexicoMexicoDelayed    $          351.006/1/2019SAMexicoDelayedGeorgeC06MexicoDelayed
       $             350.007/1/2019SARecentArgentinaArgentinaRecent    $          487.007/1/2019SAArgentinaRecentMaryC07ArgentinaRecent
       $             400.008/1/2019NARecentCanadaCanadaRecent    $          388.008/1/2019NACanadaRecentAndrewC08

      CanadaRecent

       

      • kentyler's avatar
        kentyler
        Solution Sage

        If I understand you you want to filter both tables by the same date.

        You need a third table, a Calendar Table that can have a relationship to both table 1 and table 2 on their date column.

        You can find many resources on how to create a calendar table in power bi

        Then when you filter on the date in the calendar table, it should filter both table 1 and table 2 to show records with that date.

        Here's one helpful link https://kohera.be/blog/power-bi/how-to-create-a-date-table-in-power-bi-in-2-simple-steps/

  • Icey's avatar
    Icey
    Community Support

    Hi lifer ,

     

    I can't reproduce your issue. Maybe you could give me some sample data.

     

    Best Regards,

    Icey

  • Icey's avatar
    Icey
    Community Support

    Hi lifer ,

    Have you tried this?

    Best Regards,
    Icey

     

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