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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
RedOcean
Frequent Visitor

Cannot create simple table

Hello,

 

I am a newbie but have been having fun creating Tables and Matrices from our data but I am stumped on a problem. Forgive me if it seems so basic.

 

I have 3 tables with relationships as shown in screenshot below

- Community View (from our SQL database)

- Referal Sources (from our SQL database) - this is a unique list of values

- Community Recruitment (imported from Excel sheet and shown below in screenshot 1.)

 

Screen shot 1 below - Community Recruitment in excel

Screen shot 2 below - the relationship between the three tables seems to work find.

Screen shot 3 below - I create a table with 1) ID from Referal Sources 2) Referal Source Name from Community View 3) Count of AgentID from Community View. So far so good.

Screen shot 4 below - now I add Spend (USD) from Community Recruitment Spend where I want a sum and I get an error saying there is no existing relationship between the tables.

 

WHat am I doing wrong?

 

Community Recruitment Spend.pngReferal Sources Relationships.png3.png4.png

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

My first guess would be to change your relationship directions to be bi-directional versus uni-directional.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

My first guess would be to change your relationship directions to be bi-directional versus uni-directional.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

I don't really know why that works but it does. I guess I need some lessons. Thanks man for the speedy response.

It would also probably work if your uni-directional arrow went the other way. Basically, all of the filter directions need to flow back to your fact table. The way you had it setup originally, there was no way to figure out how your third table (right-most) filtered back to your first table and so it threw up its hands and gave up. So, think about your relationship directions in terms of what filters what.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.