<?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 Divide each single value of column 1 with a sum of values in column 2 for pie chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987338#M155282</link>
    <description>&lt;P&gt;Hi all. Using the data below, what I want to get is a percentage of the authorisedcount over the sum of receivedcount by country and month. So that in the pie chart when I create multiple slicers on Month and country (or other criterias) it will show the percentage of authcount/total receivecount depending on the selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance if&amp;nbsp; we look at&lt;SPAN&gt;&amp;nbsp;AU for May 2024, i would like to obtain the % value of 2141/&lt;/SPAN&gt;&lt;SPAN&gt;8583 = 24.94% in the pie chart, in proportion to the other countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance and apologies as I am a begineer in PowerBI.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 02:45:41 GMT</pubDate>
    <dc:creator>WinkieDink87</dc:creator>
    <dc:date>2024-06-12T02:45:41Z</dc:date>
    <item>
      <title>Divide each single value of column 1 with a sum of values in column 2 for pie chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987338#M155282</link>
      <description>&lt;P&gt;Hi all. Using the data below, what I want to get is a percentage of the authorisedcount over the sum of receivedcount by country and month. So that in the pie chart when I create multiple slicers on Month and country (or other criterias) it will show the percentage of authcount/total receivecount depending on the selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance if&amp;nbsp; we look at&lt;SPAN&gt;&amp;nbsp;AU for May 2024, i would like to obtain the % value of 2141/&lt;/SPAN&gt;&lt;SPAN&gt;8583 = 24.94% in the pie chart, in proportion to the other countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance and apologies as I am a begineer in PowerBI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 02:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987338#M155282</guid>
      <dc:creator>WinkieDink87</dc:creator>
      <dc:date>2024-06-12T02:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Divide each single value of column 1 with a sum of values in column 2 for pie chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987434#M155283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758316" data-lia-user-login="WinkieDink87" class="lia-mention lia-mention-user"&gt;WinkieDink87&lt;/a&gt;&amp;nbsp;-Create a measure based on the fields to calculate percentage of authorisedcount over the total receivedcount by country and month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AuthPercentage = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Piechart'[authorisedcount]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Piechart'[receivedcount]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) * &lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Able to see as per selection for AU for may month 24.94%,check the snapshot fyr.I hope it works. please check&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 03:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987434#M155283</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-12T03:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Divide each single value of column 1 with a sum of values in column 2 for pie chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987699#M155284</link>
      <description>&lt;P&gt;Good day&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp;thank you so much for your reply and help! However it didnt seem to help. The calculation doesnt seem to change when I select a different month period in my slicer. And the calculation number doesnt tally.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 06:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3987699#M155284</guid>
      <dc:creator>WinkieDink87</dc:creator>
      <dc:date>2024-06-12T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Divide each single value of column 1 with a sum of values in column 2 for pie chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3995363#M155285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the quick response.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758316" data-lia-user-login="WinkieDink87" class="lia-mention lia-mention-user"&gt;WinkieDink87&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please have&amp;nbsp; a try.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AuthPercentage =
SUM ( Data[authorisedcount] )
    / CALCULATE (
        SUM ( Data[receivedcount] ),
        ALLEXCEPT ( Data, Data[Country], Data[Month] )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 05:39:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3995363#M155285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-17T05:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Divide each single value of column 1 with a sum of values in column 2 for pie chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3996336#M155286</link>
      <description>&lt;P&gt;PercentageAuthorisedOverReceived =&lt;BR /&gt;DIVIDE(&lt;BR /&gt;SUM(Data[authorisedcount]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Data[receivedcount]),&lt;BR /&gt;ALLEXCEPT(Data, Data[Country], Data[Month])&lt;BR /&gt;),&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/3996336#M155286</guid>
      <dc:creator>Ray_Minds</dc:creator>
      <dc:date>2024-06-17T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Divide each single value of column 1 with a sum of values in column 2 for pie chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/4054866#M160912</link>
      <description>&lt;P&gt;Good day&amp;nbsp;Anonymous&lt;/a&gt; and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="745884" data-lia-user-login="Ray_Minds" class="lia-mention lia-mention-user"&gt;Ray_Minds&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response! The formulas didnt help to calculate the data of authorized count/SUM of received count depending on the Month and country. A sample table is as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Auth Count&lt;/TD&gt;&lt;TD&gt;Rec Count&lt;/TD&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;TD&gt;AU&lt;/TD&gt;&lt;TD&gt;Jan-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;NZ&lt;/TD&gt;&lt;TD&gt;Jan-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;350&lt;/TD&gt;&lt;TD&gt;SG&lt;/TD&gt;&lt;TD&gt;Jan-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;450&lt;/TD&gt;&lt;TD&gt;AU&lt;/TD&gt;&lt;TD&gt;Feb-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;550&lt;/TD&gt;&lt;TD&gt;NZ&lt;/TD&gt;&lt;TD&gt;Feb-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;TD&gt;650&lt;/TD&gt;&lt;TD&gt;SG&lt;/TD&gt;&lt;TD&gt;Feb-24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wish to get is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example&lt;/STRONG&gt; if I select a slicer for AU, NZ and SG for Jan-24, I would like to see in a pie chart AU to reflect 100/(150+250+350)*100 = 13.33%. NZ to reflect 200/(150+250+350)*100 = 26.67% and SG to reflect 300/(150+250+350)*100 = 40%&lt;/P&gt;&lt;P&gt;I tried using the formulas provided but I am not getting the right calculation. May I ask if it could be something else I missed out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 01:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-each-single-value-of-column-1-with-a-sum-of-values-in/m-p/4054866#M160912</guid>
      <dc:creator>WinkieDink87</dc:creator>
      <dc:date>2024-07-23T01:12:04Z</dc:date>
    </item>
  </channel>
</rss>

