<?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: simple calculation based on aggregate value reg,. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/82484#M2925</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14922"&gt;@Meerakhanna﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Great to hear that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2016 09:02:02 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2016-10-26T09:02:02Z</dc:date>
    <item>
      <title>simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75594#M2577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I surprise if i can do a calculation over an aggregated value in power BI. Please see to the below screen shot &amp;amp; table. I need that 'AB on Total' value to be calculated on run in Power BI. Is it possible? - Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;AB on Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;India&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;76.6%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;China&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;86&lt;/TD&gt;&lt;TD&gt;236&lt;/TD&gt;&lt;TD&gt;63.6%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ABonTotal.JPG" style="width: 433px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15789i21B59C17EA3939D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ABonTotal.JPG" alt="ABonTotal.JPG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 06:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75594#M2577</guid>
      <dc:creator>Meerakhanna</dc:creator>
      <dc:date>2016-10-06T06:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75698#M2587</link>
      <description>&lt;P&gt;I think that its not a simple calculation... &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 11:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75698#M2587</guid>
      <dc:creator>Meerakhanna</dc:creator>
      <dc:date>2016-10-06T11:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75704#M2588</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the newly added functionality Invoke Custom Function in the Query Editor for this and It would be more creative solution as you can use them for other type of similar tasks as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do so,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.Add a Blank query and Write the below code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Qscore as number, Rscore as number,Sscore as number) =&amp;gt; Qscore + Rscore + Sscore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: Change the Code as per your requirement as your calculation are different than shown here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15678iAA66C7F71DA6CEA1/image-size/large?v=v2&amp;amp;px=600" border="0" alt="M11.PNG" title="M11.PNG" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15679i8C7DC575A1444461/image-size/large?v=v2&amp;amp;px=600" border="0" alt="M10.PNG" title="M10.PNG" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15680iBFA57A3F3CA4D062/image-size/large?v=v2&amp;amp;px=600" border="0" alt="M12.PNG" title="M12.PNG" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15681iB2E54382557DF124/image-size/large?v=v2&amp;amp;px=600" border="0" alt="M13.PNG" title="M13.PNG" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Go to your original query and Under the Add Column Tab, Select Invoke Custom Function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and Choose the appropriate options and it will give you desire results.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can use custom column in the query editor to achive the desired results.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let me know if you get stuck.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 12:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75704#M2588</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2016-10-06T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75799#M2596</link>
      <description>&lt;P&gt;Hi Bhavesh!&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;But the thing is I 've the data as unpivoted column values. I had made that as matrix so as to show up my requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll have to have some kind of work around anyway....I m still working on &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not that good with the language used here so facing some issue with writing formulae....&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 15:10:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/75799#M2596</guid>
      <dc:creator>Meerakhanna</dc:creator>
      <dc:date>2016-10-06T15:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/76106#M2612</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14922"&gt;@Meerakhanna﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have data as below, you would first pivot the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 452px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15968i14E9FF2A81910837/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create and apply two measures in a Matrix visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Total = SUM([A]) +SUM([B])+SUM([C])

AB on Total = (SUM([A])+SUM([B]))/[Total]&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 557px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/15969i01EF573C22BE5404/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 08:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/76106#M2612</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-10-07T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/82482#M2923</link>
      <description>&lt;P&gt;Eric!&lt;/P&gt;&lt;P&gt;Thanks for that solution. It worked for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 09:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/82482#M2923</guid>
      <dc:creator>Meerakhanna</dc:creator>
      <dc:date>2016-10-26T09:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: simple calculation based on aggregate value reg,.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/82484#M2925</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14922"&gt;@Meerakhanna﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Great to hear that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 09:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/simple-calculation-based-on-aggregate-value-reg/m-p/82484#M2925</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-10-26T09:02:02Z</dc:date>
    </item>
  </channel>
</rss>

