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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
aashton
Helper V
Helper V

Help setting up data structure/relationships

Hello,

My data consists of different Leads (people), we've met through different sources (at an event, on the web, social media, etc).  I've set up the data structure like:  table Leads includes distinct emails.  This table links to a Lead Sources table 1-to-many on email.  The Lead Sources table includes the Source ID, which links to the Source table (this is events, referral, social media, etc).  The Leads table also links to Applications table on email.  A Lead can have multiple sources.  A lead can have multiple applications. 

I want to display the total number of leads and applications by Source.  But just creating a table visual that includes Lead email, Source, Applicaiton ID, I immediately get an error saying unknown relationship.

 

Have I set up this data structure correctly?  Do you have better ideas?  

 

aashton_0-1706973809018.png

 

3 REPLIES 3
Ricardo12
New Member

  • no puedo  mandar mensajes 
  •  
Anonymous
Not applicable

Hi @aashton ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Daniel29195
Super User
Super User

@aashton 

 

why you need all the bidirectional filters . 

i would recommend to get rid off the bidrectional filters .

 

bi directional filters make your DAX hard to interpret and debug. 

 

other than that, it all depends on your needs .

 

for you case, 

get the total number of leads by source : you can get this data from the source and leads source table 

 

get the total number of applications by source : i assume this is the requirement that because of it, you created the bi directional filters. 

 

i would recommend to remove all the bi directional filters and activate the bi directional filter just in the calculation of the measure, using crossfilter. 

 

calculate

(

[measure] ,

crossfilter ( tbl_name[col_1], tbl_name[col_2] , both ) 
)

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.