<?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: DAX Measure to show the total percentage of opportunities won for the associated lead source? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3726644#M145166</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497222" data-lia-user-login="kajelliott" class="lia-mention lia-mention-user"&gt;kajelliott&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't quite understand what you need, please provide some test data and screenshot information and explain it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adamk Kong&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 08:14:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-27T08:14:48Z</dc:date>
    <item>
      <title>DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3725290#M145097</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column of lead sources in my data table and have calculated the percentage of opportunties won with a DAX calculation which results in this table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Lead Source&lt;/TD&gt;&lt;TD&gt;Total % Won&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;22%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;24%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;70%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;13%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;17%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;How do I create a Dax expression so that this percentage will display in a table against the opportunity like so?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Opportunity&lt;/TD&gt;&lt;TD&gt;Lead Source&lt;/TD&gt;&lt;TD&gt;Lead Source Won&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Name A&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;17%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Name B&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;13%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Name C&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;22%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Name D&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;24%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Opportunity and Lead Source exist in the same data table in power BI&lt;BR /&gt;The Total % Won calculation is&amp;nbsp;DIVIDE([Total Opps for Won], [Total Opps]) + 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help is appreciated! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 23:12:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3725290#M145097</guid>
      <dc:creator>kajelliott</dc:creator>
      <dc:date>2024-02-26T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3725482#M145116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497222" data-lia-user-login="kajelliott" class="lia-mention lia-mention-user"&gt;kajelliott&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, you could create a data table similar to the following and then apply this formula.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PercentageWon = 
VAR totalOpps =
    CALCULATE ( SUM ( 'Table'[Total Opps] ) )
VAR wonOpps =
    CALCULATE ( SUM ( 'Table'[Total Opps for won] ) )
RETURN
    DIVIDE ( wonOpps, totalOpps ) + 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 01:49:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3725482#M145116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-27T01:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3725945#M145128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. Both [Total Opps} &amp;amp; [Total Opps for Won] are measures, so it will not allow that for the expression you have written.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I notice that the expression does not reference the Lead Source at all, so i'm not sure how this would work. It looks like the expression would return the percentage won for each opportunity, which will either be 100% or 0% depending on the opportunity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know what you think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Kayla&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 04:19:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3725945#M145128</guid>
      <dc:creator>kajelliott</dc:creator>
      <dc:date>2024-02-27T04:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3726644#M145166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497222" data-lia-user-login="kajelliott" class="lia-mention lia-mention-user"&gt;kajelliott&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't quite understand what you need, please provide some test data and screenshot information and explain it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adamk Kong&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 08:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3726644#M145166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-27T08:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3728821#M145286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sorry, it wont let me upload a pbix file which is frustrating. To give you an idea, my data looks like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then create measures to return the percentage of opportunies won which results in this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What I need is a measure that returns the percentage of opportunities won for the lead source of each opportunity. Eg, Opportunitie&lt;SPAN&gt;s with a lead source 'Website' are won 80% of the time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example below -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 22:37:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3728821#M145286</guid>
      <dc:creator>kajelliott</dc:creator>
      <dc:date>2024-02-27T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3730136#M145346</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497222" data-lia-user-login="kajelliott" class="lia-mention lia-mention-user"&gt;kajelliott&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try below formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_ =
VAR total_ =
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER ( ALL ( 'Table' ), 'Table'[Load Source] = MAX ( 'Table'[Load Source] ) )
    )
VAR cur_ =
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Load Source] = MAX ( 'Table'[Load Source] )
                &amp;amp;&amp;amp; 'Table'[Status] = "won"
        )
    )
RETURN
    IF ( ISBLANK ( DIVIDE ( cur_, total_ ) ), 0, DIVIDE ( cur_, total_ ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 09:21:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3730136#M145346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-28T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to show the total percentage of opportunities won for the associated lead source?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3731788#M145428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is perfect! Thank you so much for your time and effort. It is greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 22:26:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-show-the-total-percentage-of-opportunities-won/m-p/3731788#M145428</guid>
      <dc:creator>kajelliott</dc:creator>
      <dc:date>2024-02-28T22:26:52Z</dc:date>
    </item>
  </channel>
</rss>

