<?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 Measure for Expenses Vs Budget in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2028962#M761663</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a pretty simple table in Power BI. It shows the actual expenses in one column and the budget for that year in the other column. I am trying to create a third column which shows the percentgae difference, if the expense are under the budget, by how much %, or if over, by how much. Any help, how I can create that measure. Thanks&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 23:15:04 GMT</pubDate>
    <dc:creator>pfarahani</dc:creator>
    <dc:date>2021-08-20T23:15:04Z</dc:date>
    <item>
      <title>Measure for Expenses Vs Budget</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2028962#M761663</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a pretty simple table in Power BI. It shows the actual expenses in one column and the budget for that year in the other column. I am trying to create a third column which shows the percentgae difference, if the expense are under the budget, by how much %, or if over, by how much. Any help, how I can create that measure. Thanks&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 23:15:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2028962#M761663</guid>
      <dc:creator>pfarahani</dc:creator>
      <dc:date>2021-08-20T23:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Expenses Vs Budget</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2028975#M761668</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164594" data-lia-user-login="pfarahani" class="lia-mention lia-mention-user"&gt;pfarahani&lt;/a&gt;&amp;nbsp;Is [Actual Expenses] a column or measure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's a measure, create a new measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;% Diff = DIVIDE([Actual Expenses] - [Budget Expenses], [Budget Expenses])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's a column, create new measures:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Total Actual Expenses = SUM(Table[Actual Expenses])&lt;/P&gt;
&lt;P&gt;Total Budget Expenses = SUM(Table[Budget Expenses])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and use the measures in the % Diff measure.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 23:27:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2028975#M761668</guid>
      <dc:creator>AllisonKennedy</dc:creator>
      <dc:date>2021-08-20T23:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Expenses Vs Budget</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2034033#M762857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164594" data-lia-user-login="pfarahani" class="lia-mention lia-mention-user"&gt;pfarahani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, whether it is column or measure, a field type can only be the same. Therefore, even if the judgment condition is used, the result of percentage and numeric value cannot be displayed in the same column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two different results can only be obtained in the following ways, refer to the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var a = CALCULATE(SUM('Table'[Actual Expense]),ALLEXCEPT('Table','Table'[Fiscal Year]))
var b = CALCULATE(SUM('Table'[Budget Expense]),ALLEXCEPT('Table','Table'[Fiscal Year]))
return
IF(b&amp;gt;a,(b-a)/b,0)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var a = CALCULATE(SUM('Table'[Actual Expense]),ALLEXCEPT('Table','Table'[Fiscal Year]))
var b = CALCULATE(SUM('Table'[Budget Expense]),ALLEXCEPT('Table','Table'[Fiscal Year]))
return
IF(b&amp;gt;a,0,-(b-a))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Henry&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 06:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Measure-for-Expenses-Vs-Budget/m-p/2034033#M762857</guid>
      <dc:creator>v-henryk-mstf</dc:creator>
      <dc:date>2021-08-24T06:18:31Z</dc:date>
    </item>
  </channel>
</rss>

