<?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 Create Total by subgroup+ Difference + % using the new DAX function Window in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3159164#M113402</link>
    <description>&lt;P&gt;Hello guys how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one example of my PBI (simple one, with sales by country per day)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to (using the new DAX window function):&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;add a total by Continent per day&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;add the difference per continent per day&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;add a %&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Example of the desired final result (in Excel)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Excel used as Data Source (and the final result) - &lt;A href="https://docs.google.com/spreadsheets/d/1L3iySJhypDu1smuUXThJIO-ssVgUTMFe/edit?usp=share_link&amp;amp;ouid=107563822733073669686&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;PBI file - &lt;A href="https://drive.google.com/file/d/1Thbqwme6vybnihTN2LdzLvWAnRUGvKJ_/view?usp=share_link" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Really appreciate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 18:49:57 GMT</pubDate>
    <dc:creator>leorrn</dc:creator>
    <dc:date>2023-03-28T18:49:57Z</dc:date>
    <item>
      <title>Create Total by subgroup+ Difference + % using the new DAX function Window</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3159164#M113402</link>
      <description>&lt;P&gt;Hello guys how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one example of my PBI (simple one, with sales by country per day)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to (using the new DAX window function):&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;add a total by Continent per day&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;add the difference per continent per day&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;add a %&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Example of the desired final result (in Excel)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Excel used as Data Source (and the final result) - &lt;A href="https://docs.google.com/spreadsheets/d/1L3iySJhypDu1smuUXThJIO-ssVgUTMFe/edit?usp=share_link&amp;amp;ouid=107563822733073669686&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;PBI file - &lt;A href="https://drive.google.com/file/d/1Thbqwme6vybnihTN2LdzLvWAnRUGvKJ_/view?usp=share_link" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Really appreciate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 18:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3159164#M113402</guid>
      <dc:creator>leorrn</dc:creator>
      <dc:date>2023-03-28T18:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Total by subgroup+ Difference + % using the new DAX function Window</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3159812#M113436</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file, whether it works for you.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales: = 
SUM( Tabela1[Sales] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Diff: = 
CALCULATE ( [Sales:], Tabela1[Group] = "Americas" )
    - CALCULATE ( [Sales:], Tabela1[Group] = "Europe" )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage: = 
DIVIDE( [Diff:], CALCULATE([Sales:], Tabela1[Group] = "Americas"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 03:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3159812#M113436</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-03-29T03:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Total by subgroup+ Difference + % using the new DAX function Window</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3160728#M113503</link>
      <description>&lt;P&gt;Hello Kim, ty for the fast reply. I've done something similar to what you suggested. In 2 separated visuals, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that sometimes we have more Countries per Region, and the tables do not fit well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why I considered using the new window function (similar to Tableau table calculations). So, independent of how many countries the table shows, the final calculations would fit well in the same table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TYVM&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-by-subgroup-Difference-using-the-new-DAX-function/m-p/3160728#M113503</guid>
      <dc:creator>leorrn</dc:creator>
      <dc:date>2023-03-29T12:05:40Z</dc:date>
    </item>
  </channel>
</rss>

