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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vanessafvg
Community Champion
Community Champion

Relatedtable issue

I have 3 tables, 

1. income

2. practices

3. leads

 

i want to pull back the income from income where they are related to leads but the relationship is through the practice table

 

Leads Income (YTD) = CALCULATE(Income[Plan Income (YTD)], RELATEDTABLE(Leads))

 

this works to a degree but unfortunately it brings everything back from leads. and my date filter on leads is not working.  What is the best way to bring something back from another table, ie  many to many relationship

 

Capture.PNG





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




3 REPLIES 3
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @vanessafvg

 

You could experiment with the "bi-directional" relationship setting as one approach.  By setting this to Both on one of the relationships coming from your Practices table it may solve your issue.  MS introduced this feature as one way to address many to many challenges in your data.  This may solve your issue without requiring you to restructure your tables.

 

bidir.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

@Phil_Seamark i did have it on but it was giving me funny resuts elswhere, guess i better tweak my relationships a bit!  thanks





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

For funzies try:


Leads Income (YTD) = CALCULATE(Income[Plan Income (YTD)], Practice)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.