<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cumulative Total of id count per lead days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379895#M61459</link>
    <description>&lt;P&gt;Read my article here&amp;nbsp;&lt;A href="https://exceleratorbi.com.au/pareto-analysis-in-power-bi/" target="_blank"&gt;https://exceleratorbi.com.au/pareto-analysis-in-power-bi/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 00:30:38 GMT</pubDate>
    <dc:creator>MattAllington</dc:creator>
    <dc:date>2022-03-08T00:30:38Z</dc:date>
    <item>
      <title>Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379850#M61458</link>
      <description>&lt;P&gt;Hi, I am trying to get the running total id count per lead to contact days.&amp;nbsp; I am failing miserably - any help wold be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 00:02:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379850#M61458</guid>
      <dc:creator>vikash-jamnadas</dc:creator>
      <dc:date>2022-03-08T00:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379895#M61459</link>
      <description>&lt;P&gt;Read my article here&amp;nbsp;&lt;A href="https://exceleratorbi.com.au/pareto-analysis-in-power-bi/" target="_blank"&gt;https://exceleratorbi.com.au/pareto-analysis-in-power-bi/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 00:30:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379895#M61459</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2022-03-08T00:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379972#M61467</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="217" data-lia-user-login="MattAllington" class="lia-mention lia-mention-user"&gt;MattAllington&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this.&amp;nbsp; Following is what I have done&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cumulative % = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;LeadCnt&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;opportunity&lt;/SPAN&gt;&lt;SPAN&gt;[Total Leads]&lt;/SPAN&gt; &lt;SPAN&gt;/* this sets the margin for the current product &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(the one that is the current column in the column chart) */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;TotalLeadAllLead2Contact&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Total Leads]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;opportunity[Lead to Contacted Days]&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;SPAN&gt;/* the total margin across all products. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is needed to turn the absolute margin into a percentage */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Total Leads]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;opportunity[Lead to Contacted Days]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[Total Leads]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;LeadCnt&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) / &lt;/SPAN&gt;&lt;SPAN&gt;TotalLeadAllLead2Contact&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I can see that this is working by sorting Total Lead count in desc order and calculating the cumulative based on that.&amp;nbsp; However I want the cumulative based on &lt;SPAN&gt;opportunity[Lead to Contacted Days] in asc order. How will I have to adjust the formular to achive this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Vikash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 02:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2379972#M61467</guid>
      <dc:creator>vikash-jamnadas</dc:creator>
      <dc:date>2022-03-08T02:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2380417#M61480</link>
      <description>&lt;P&gt;It's been a while.&amp;nbsp; My guess is, change the &amp;gt;= LeadCnt to be &amp;lt;=LeadCnt&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 06:42:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2380417#M61480</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2022-03-08T06:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2382140#M61602</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="217" data-lia-user-login="MattAllington" class="lia-mention lia-mention-user"&gt;MattAllington&lt;/a&gt;&amp;nbsp; I'm afraid this does not work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 20:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2382140#M61602</guid>
      <dc:creator>vikash-jamnadas</dc:creator>
      <dc:date>2022-03-08T20:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2385627#M61781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="359334" data-lia-user-login="vikash-jamnadas" class="lia-mention lia-mention-user"&gt;vikash-jamnadas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try to modify the return part like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RETURN
    CALCULATE (
        [Total Leads],
        FILTER (
            ALL ( opportunity ),
            [Lead to Contacted Days] &amp;lt;= MAX ( [Lead to Contacted Days] )
        )
    ) / TotalLeadAllLead2Contact&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 09:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2385627#M61781</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-03-10T09:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of id count per lead days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2396710#M62559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="359334" data-lia-user-login="vikash-jamnadas" class="lia-mention lia-mention-user"&gt;vikash-jamnadas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Have you tried my suggestion? Can it solve your problem?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 03:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-of-id-count-per-lead-days/m-p/2396710#M62559</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-03-16T03:02:02Z</dc:date>
    </item>
  </channel>
</rss>

