<?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: Help With creating a caclulation when data is all dated monthly in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4395492#M174513</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="924212" data-lia-user-login="JSmart913" class="lia-mention lia-mention-user"&gt;JSmart913&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refers to the following steps.&lt;/P&gt;
&lt;P&gt;The test data is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to be used for calculating percentage growth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage growth =
VAR previousYearValue =
    CALCULATE ( SUM ( 'Table'[Value] ), SAMEPERIODLASTYEAR ( 'Table'[Date] ) )
VAR currentYearValue =
    SUM ( 'Table'[Value] )
RETURN
    DIVIDE ( currentYearValue - previousYearValue, previousYearValue )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding this measure to the matrix resulted in the following. Hopefully it will meet your needs.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attached pbix for reference.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dengliang Li&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 05:22:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-05T05:22:12Z</dc:date>
    <item>
      <title>Help With creating a caclulation when data is all dated monthly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394778#M174479</link>
      <description>&lt;P&gt;I have a census flat file that is updated monthly - So for 2025 all the january dates on the data say 1/1/2025 and then Feb. will have&amp;nbsp; data but the date will be 2/1/2025 and so on showing the changes in different accounts each month.&amp;nbsp; So i want to create a calculation for that year over year growth change for 2023-2024.&amp;nbsp; So I would need to create the calculation based on the data in the latest data dump for each year 12/1/2023 and 12/1/2024.&amp;nbsp; How would I do that given that I only want to look at the data from the december time frame?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:47:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394778#M174479</guid>
      <dc:creator>JSmart913</dc:creator>
      <dc:date>2025-02-04T15:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help With creating a caclulation when data is all dated monthly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394786#M174480</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="924212" data-lia-user-login="JSmart913" class="lia-mention lia-mention-user"&gt;JSmart913&lt;/a&gt;&amp;nbsp;I would think you would just filter the data coming in so that only December is included in each table.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:50:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394786#M174480</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-02-04T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help With creating a caclulation when data is all dated monthly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394868#M174483</link>
      <description>&lt;P&gt;Right but how would i show the % change year over year since it is the same field.&amp;nbsp; I would need to take the data from 12/1/2023 lets say it was 93 and do a calculation to show the growth to the 12/1/2024 data&amp;nbsp; 151 (so ((151-93)/93) - being a 62.3% increase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 16:39:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394868#M174483</guid>
      <dc:creator>JSmart913</dc:creator>
      <dc:date>2025-02-04T16:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help With creating a caclulation when data is all dated monthly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394871#M174484</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 16:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4394871#M174484</guid>
      <dc:creator>JSmart913</dc:creator>
      <dc:date>2025-02-04T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help With creating a caclulation when data is all dated monthly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4395492#M174513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="924212" data-lia-user-login="JSmart913" class="lia-mention lia-mention-user"&gt;JSmart913&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refers to the following steps.&lt;/P&gt;
&lt;P&gt;The test data is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to be used for calculating percentage growth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage growth =
VAR previousYearValue =
    CALCULATE ( SUM ( 'Table'[Value] ), SAMEPERIODLASTYEAR ( 'Table'[Date] ) )
VAR currentYearValue =
    SUM ( 'Table'[Value] )
RETURN
    DIVIDE ( currentYearValue - previousYearValue, previousYearValue )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding this measure to the matrix resulted in the following. Hopefully it will meet your needs.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attached pbix for reference.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dengliang Li&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 05:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-With-creating-a-caclulation-when-data-is-all-dated-monthly/m-p/4395492#M174513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-05T05:22:12Z</dc:date>
    </item>
  </channel>
</rss>

