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
vikash-jamnadas
Frequent Visitor

Cumulative Total of id count per lead days

Hi, I am trying to get the running total id count per lead to contact days.  I am failing miserably - any help wold be appreciated. 

 

thanks

Vikash

 

vikashjamnadas_0-1646697608309.png

 

6 REPLIES 6
v-yanjiang-msft
Community Support
Community Support

Hi @vikash-jamnadas ,

Have you tried my suggestion? Can it solve your problem?

Best Regards,
Community Support Team _ kalyj

It's been a while.  My guess is, change the >= LeadCnt to be <=LeadCnt



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

@MattAllington  I'm afraid this does not work. 

Hi @vikash-jamnadas ,

Try to modify the return part like this:

RETURN
    CALCULATE (
        [Total Leads],
        FILTER (
            ALL ( opportunity ),
            [Lead to Contacted Days] <= MAX ( [Lead to Contacted Days] )
        )
    ) / TotalLeadAllLead2Contact

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.

Read my article here https://exceleratorbi.com.au/pareto-analysis-in-power-bi/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Hi @MattAllington ,

 

Thanks for this.  Following is what I have done 

 

Cumulative % =
VAR LeadCnt = opportunity[Total Leads] /* this sets the margin for the current product
(the one that is the current column in the column chart) */
VAR TotalLeadAllLead2Contact =
CALCULATE([Total Leads], ALL(opportunity[Lead to Contacted Days])) /* the total margin across all products.
This is needed to turn the absolute margin into a percentage */
RETURN
CALCULATE(
[Total Leads],
FILTER( ALL(opportunity[Lead to Contacted Days]), [Total Leads] >= LeadCnt)
) / TotalLeadAllLead2Contact
 

I can see that this is working by sorting Total Lead count in desc order and calculating the cumulative based on that.  However I want the cumulative based on opportunity[Lead to Contacted Days] in asc order. How will I have to adjust the formular to achive this?

 

Kind Regards

Vikash

 

 

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.

Top Solution Authors