<?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: Calculate Sales over budget in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512637#M69735</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;, thank you for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 07:55:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-13T07:55:16Z</dc:date>
    <item>
      <title>Calculate Sales over budget</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512348#M69725</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a table called Sales with columns Fiscal Year, Fiscal Quarter, Region, Country, Partner, Budget, and Sales.&lt;BR /&gt;I wanted to create a measure that sums (Sales - Budget) by Partner, only when Sales &amp;gt; Budget (“UpSales”). I will then filter the other columns in a pivot table.&lt;/P&gt;&lt;P&gt;I tried to create something like this so I will be able to sum the “UpSales” by Country and Region.&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;SUMMARIZE ( Sales,&lt;BR /&gt;Sales[Partner],&lt;BR /&gt;“UpSales” , [Sales] - [Budget]&lt;BR /&gt;) [Sales] &amp;gt; [Budget] — here I got the error " CALCULATE’ has been used in a True/False expression]" —&lt;/P&gt;&lt;P&gt;Here is a sample of the table and the expected result.&amp;nbsp;&lt;A title="Upsell" href="https://docs.google.com/spreadsheets/d/16ypn6AW1kEXNdCCjGR7Qnu1XVahNmiXV/edit?usp=sharing&amp;amp;ouid=116175183462718647188&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank" rel="noopener"&gt;Upsell&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 06:26:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512348#M69725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-13T06:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sales over budget</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512366#M69727</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Create a measure &lt;/P&gt;
&lt;P&gt;M1=&lt;/P&gt;
&lt;P&gt;if([Sales] - [Budget] &amp;gt;"Upsales", ""Down Sales")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new table with two values upsales and Downsales , say Bucket&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now create new measures&lt;/P&gt;
&lt;P&gt;new Measure &lt;BR /&gt;Sumx(filter(Values(sales[Partner]), [M1] = max(bucket[Value])), [Sales])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure bucket[Value] is there in visual too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dynamic segmentation -Measure to Dimension conversion: &lt;A href="https://youtu.be/gzY40NWJpWQ" target="_blank"&gt;https://youtu.be/gzY40NWJpWQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 06:30:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512366#M69727</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-13T06:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sales over budget</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512637#M69735</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;, thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 07:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sales-over-budget/m-p/2512637#M69735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-13T07:55:16Z</dc:date>
    </item>
  </channel>
</rss>

