<?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: Need a Dax to return % of top product in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962403#M42945</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am taking it correctly you just need a highest % of total. You can take a Max of "% of total column" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Measure = MAX(Supplier_data[% of Total])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this is the output you looking.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 14:18:21 GMT</pubDate>
    <dc:creator>Samarth_18</dc:creator>
    <dc:date>2021-07-16T14:18:21Z</dc:date>
    <item>
      <title>Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962313#M42937</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am putting together some dynamic text and need a Dax that will return the % that the top supplier makes up of total.&lt;/P&gt;&lt;P&gt;In the example below, I would want DAX to return 50%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;I need to show is 50% i.e. (25+25)/100 in the example below since supplier D is the highest of them all.&lt;/DIV&gt;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Supplier&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do have following measure in my report if that helps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actual Amount = ROUND(SUM('Transactions'[Amount]),2)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:27:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962313#M42937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-16T14:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962368#M42942</link>
      <description>&lt;P&gt;Hi zzakir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the result you're looking for? It takes the % value of the top 1 supplier based on the [% of total] column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TESTMEASURE = CALCULATE(SELECTEDVALUE(Test[% of Total]), TOPN(1,ALL(Test), Test[% of Total],DESC))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962368#M42942</guid>
      <dc:creator>timg</dc:creator>
      <dc:date>2021-07-16T14:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962396#M42943</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="74460" data-lia-user-login="timg" class="lia-mention lia-mention-user"&gt;timg&lt;/a&gt;,&lt;BR /&gt;This is close to what I want. Perhaps I should've asked my original question differently:&lt;/P&gt;&lt;P&gt;I have a transaction table below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;I need to show is 50% i.e. (25+25)/100 in the example below in a card like you had 67% above.&lt;/DIV&gt;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Supplier&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do have following measure in my report if that helps: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actual Amount = ROUND(SUM('Transactions'[Amount]),2)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:17:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962396#M42943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-16T14:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962403#M42945</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;If i am taking it correctly you just need a highest % of total. You can take a Max of "% of total column" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Measure = MAX(Supplier_data[% of Total])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this is the output you looking.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:18:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962403#M42945</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-07-16T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962419#M42948</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312802" data-lia-user-login="Samarth_18" class="lia-mention lia-mention-user"&gt;Samarth_18&lt;/a&gt;&amp;nbsp;I have editted my original question to be clearer.&lt;/P&gt;&lt;P&gt;I do not have % column.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962419#M42948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-16T14:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962529#M42955</link>
      <description>&lt;P&gt;You can create a measure with below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
var total_sum = CALCULATE(SUM(Supplier_data[Amount]),ALL(Supplier_data))
var getting_max =  MAXX(SUMMARIZE(ALL(Supplier_data),Supplier_data[Supplier],Supplier_data[Amount],"Max_Value",SUM(Supplier_data[Amount])/total_sum),[Max_Value])
return FORMAT(getting_max,"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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962529#M42955</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-07-16T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax to return % of top product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962644#M42960</link>
      <description>&lt;P&gt;This was helpful. I had to tweak the formula a little. Here was the final formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;% of highest Supplier = 
var total_supplier = CALCULATE([Actual Amount],'Find Suppliers - Addl Info'[Supplier]&amp;lt;&amp;gt;BLANK())
var getting_max =  MAXX(SUMMARIZE(FILTER('Fact Table','Fact Table'[Supplier ID]&amp;lt;&amp;gt;BLANK()),'Find Suppliers - Addl Info'[Supplier],"Max_Value",SUM('Fact Table'[GL Amount])/total_supplier),[Max_Value])
return 

FORMAT(getting_max,"0.0%")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 17:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-to-return-of-top-product/m-p/1962644#M42960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-16T17:01:17Z</dc:date>
    </item>
  </channel>
</rss>

