<?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 How to calculate YOY variation, when a measure is split by column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-YOY-variation-when-a-measure-is-split-by-column/m-p/4123356#M163731</link>
    <description>&lt;P&gt;Hi, i'm having a sikmple issue, I get the right value with my measure Total actual consolidated, when I add the Year in column, i get the right output, but i d'ont know how to calculate YOY, with the calculate function, and group calculation some row from the Subtotal measure are missing, i dont know why. Any help is much welcomed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;subtotal actual =&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if(COUNTROWS('SIG structure')=1,&lt;/LI&gt;&lt;LI&gt;CALCULATE([Total actual],&lt;/LI&gt;&lt;LI&gt;all('SIG structure'),&lt;/LI&gt;&lt;LI&gt;'SIG structure'[row index]&amp;lt;=Values('SIG structure'[row index])))&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Total actual = sum('BG groupe'[Solde])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Total actual consolidated =&lt;/LI&gt;&lt;LI&gt;SWITCH(true(),&lt;/LI&gt;&lt;LI&gt;SELECTEDVALUE('SIG structure'[Subtotal])="0",[Total actual],&lt;/LI&gt;&lt;LI&gt;SELECTEDVALUE('SIG structure'[Subtotal])="1",[subtotal actual],BLANK())&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thks a lot&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 18:45:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-28T18:45:36Z</dc:date>
    <item>
      <title>How to calculate YOY variation, when a measure is split by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-YOY-variation-when-a-measure-is-split-by-column/m-p/4123356#M163731</link>
      <description>&lt;P&gt;Hi, i'm having a sikmple issue, I get the right value with my measure Total actual consolidated, when I add the Year in column, i get the right output, but i d'ont know how to calculate YOY, with the calculate function, and group calculation some row from the Subtotal measure are missing, i dont know why. Any help is much welcomed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;subtotal actual =&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if(COUNTROWS('SIG structure')=1,&lt;/LI&gt;&lt;LI&gt;CALCULATE([Total actual],&lt;/LI&gt;&lt;LI&gt;all('SIG structure'),&lt;/LI&gt;&lt;LI&gt;'SIG structure'[row index]&amp;lt;=Values('SIG structure'[row index])))&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Total actual = sum('BG groupe'[Solde])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Total actual consolidated =&lt;/LI&gt;&lt;LI&gt;SWITCH(true(),&lt;/LI&gt;&lt;LI&gt;SELECTEDVALUE('SIG structure'[Subtotal])="0",[Total actual],&lt;/LI&gt;&lt;LI&gt;SELECTEDVALUE('SIG structure'[Subtotal])="1",[subtotal actual],BLANK())&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 18:45:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-YOY-variation-when-a-measure-is-split-by-column/m-p/4123356#M163731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-28T18:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate YOY variation, when a measure is split by column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-YOY-variation-when-a-measure-is-split-by-column/m-p/4123814#M163748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can use&amp;nbsp; "&lt;SPAN&gt;SAMEPERIODLASTYEAR" to&amp;nbsp;get the sales for the same period last year.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Calculate the year-on-year value:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PY Sales = CALCULATE([Sales Amount], SAMEPERIODLASTYEAR('Date'[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Calculate YOY growth rate:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YOY Growth = DIVIDE([Sales Amount] - [PY Sales], [PY Sales])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 01:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-YOY-variation-when-a-measure-is-split-by-column/m-p/4123814#M163748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-29T01:50:10Z</dc:date>
    </item>
  </channel>
</rss>

