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
terpsbmore
Helper I
Helper I

Lead Performance by Day

Hello All,

 

I am trying to calculate lead performance (close rate) by the date the lead was received and I am having a lot of trouble figuring this one out. I have 2 separate tables, a Lead Created table and a Lead Closed table. I have tried merging the tables with a left outer join and connecting them by Lead ID and creating measures for both models, however, am not able to calculate the daily ratio I need. I figure it's a problem with my model or it's a DAX calculation that I cannot figure out. The example tables below provide an example of what I am trying to achieve regarding lead performance by day. As you can see, as more leads close over time the lead performance by date will also increase.

Lead Performance.PNG

 

 

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

The Lead Closed Table is not required for generating the Lead Performance table.  Try this

 

  1. In your visual, drag the Created on Date field from the Lead Created Table
  2. Write this measure in the Lead Created Table

 

=CALCULATE(COUNTROWS(Lead_Created),Lead_Created[Closed]="Y)/COUNTROWS(Lead_Created)

 

Format this measure as a %.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

The Lead Closed Table is not required for generating the Lead Performance table.  Try this

 

  1. In your visual, drag the Created on Date field from the Lead Created Table
  2. Write this measure in the Lead Created Table

 

=CALCULATE(COUNTROWS(Lead_Created),Lead_Created[Closed]="Y)/COUNTROWS(Lead_Created)

 

Format this measure as a %.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur Thanks for this. I actually manually added the "Y" to the columns. However, I can perform a Lookup to the Lead Created Table from the Lead Closed table and perform a count on the new Lookup column to get the numerator. This post has helped me to look at using the Countrows function in other situations. Thank you for the help.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.