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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Though DAX calculation

Hi All,

I could use some help calculating the following measure.

So I have 3 tables containing a lot of data.

  • Customer
  • Leads
  • Sales

 

The goal of my measure is to calculate the total conversion from lead to sale.

Note that my relationship is only set-up as followed :

Robin666_0-1635238177217.png

 

So a customer can have multiple leads and multiple sales.

I would need to calculate the number leads that have been qualified, meaning have a sale that is generated after the lead creation date and not later then 90 days after the creation date.

 

My main difficulty is the many to many kind of this calculation! A column or measure, both would be fine!

 

Hope someone can help me out! 😊

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Can you provide some sample data and expected result to help us understand it better? As you said, a customer can have multiple leads and multiple sales, so how can we know which leads are related to which sales?

 

Best Regards,
Community Support Team _ Jing

amitchandak
Super User
Super User

@Anonymous , You can create a new column in lead like

 

Has sales = var _1 = countx(filter(sales, lead[customer id] = sales[customer ID] && Sale[Sales Date] >= Lead[Lead Date]  && Sale[Sales Date] <= Lead[Lead Date] +90 ), Sales[Sales ID])

 

Return

if(isblank(_1), false(), True())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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