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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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 
  •  
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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