Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lifer
Regular Visitor

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 10
Icey
Community Support
Community Support

Hi @lifer ,

Have you tried this?

relationship.PNG

Best Regards,
Icey

 

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

Icey
Community Support
Community Support

Hi @lifer ,

 

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

 

Best Regards,

Icey

kentyler
Solution Sage
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?





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


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

 

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/





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Hi @kentyler 

 

I have try that already, but the problem is that if i take off the relationship between tables with the custome column that i've created, now im not able to filter by type, or even by region or sub region.

 

That's been my problem so far

Do you have one record only for each customer in each table ? You should be able to extract a table of customers, with one record for each customer and then create relationships between that and table 1 and table 2. If you don't want to filter for the same date in both tables you might need to have one calendar table for each of them.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Hi @kentyler 

 

No, is not 1 record per customer, there is actually around 500k rows but only around 200 buyer names, so there is alot of lines for the same buyer name, and that is my problem, that i cannot filter everything on the same page with 1 data, thats what i've been trying to do, but for some reason the relationship that im making is not working, and its for obvious reason a many to many relationship

Can you extract the distinct buyer names into a table. Then that table should be in a 1 to many relationship with both table 1 and table 2





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Unfortunately no, i cannot, because there is no buyer name on one table, so there is no way to create a relation with that data.

 

I have tryied to remove the buyer name and buyer code, so i will have almost the same columns, but still not working, im only able to filter 1 table with the date or the region at the same time.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors