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! Learn more

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

MattAllington
Community Champion
Community Champion

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.
I will not give you bad advice, even if you unknowingly ask for it.

@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.

MattAllington
Community Champion
Community Champion

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.
I will not give you bad advice, even if you unknowingly ask for it.

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
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.