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
dandamudisanjay
Regular Visitor

Help with DAX

Hi All, 

 

Hope you are all safe and well. 

 

Just want some help with a DAX please as follows. 

 

I'm creating a dashboard with lead start date from Leads entity and want total distinct customers from Customers table to be displayed who have start date >= Opportunity close date. 

 

Also, want to get purchase amount total for the customers to be available as well. 

 

So, based on the lead start date filter, the respective opportunities who are having link to Account which is connected to customers through service table needs to be displayed. 

 

The relationship from power bi model is as follows. 

 

dandamudisanjay_0-1634105050510.png

Hope to hear from you. 

 

Regards

Sanj

2 REPLIES 2
lbendlin
Super User
Super User

So you are trying to catch the people who put bogus data in the leads object?  Usually a lead predates the opportunity creation (let alone the closure).

 

Please explain the rationale for the bidirectional links. Aren't Accounts and Customers the same thing? 

What do you consider dimensions, and what do you consider facts?

Have you tried to create a snowflake schema?

Hi @lbendlin , 

 

Accounts and customers are slightly different. Imagine Accounts as supplier and customers is actual customers and our business is a re seller.  

 

Spot on with leads and opportunities. We only want to count total customers and total sales amount from customer entity once an opportunity is closed and only those where the date customer joined is greater than opportunity closed date. 

 

Rationale behing the bidirectional link is so it will filter out those accounts based on the lead selection. 

 

We havent tried the snowflake schema yet. 

 

Regards 

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.