<?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: Deltas within a Measure (?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4690984#M179633</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1260252" data-lia-user-login="Pfoster" class="lia-mention lia-mention-user"&gt;Pfoster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To calculate the deltas between periods in your chart using the existing YaQ_Volume measure, you can create a separate DAX measure that captures the previous period’s value and computes the percentage change. Assuming your 'Unrelated Date'[Period] column contains sortable numeric values (e.g., 2020, 2021, or Q1 as 1, Q2 as 2, etc.), use the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YaQ_Delta = 
VAR CurrentValue = [YaQ_Volume]
VAR PrevValue = 
    CALCULATE(
        [YaQ_Volume],
        FILTER(
            ALL('Unrelated Date'),
            'Unrelated Date'[Category] = MAX('Unrelated Date'[Category]) &amp;amp;&amp;amp;
            'Unrelated Date'[Period] = MAX('Unrelated Date'[Period]) - 1
        )
    )
RETURN 
IF(
    NOT ISBLANK(PrevValue),
    DIVIDE(CurrentValue - PrevValue, PrevValue),
    BLANK()
)
&lt;/LI-CODE&gt;
&lt;P&gt;This measure evaluates the current value and compares it to the previous period’s value by subtracting one from the current 'Unrelated Date'[Period]. It returns the percentage difference. If the previous value is blank, the measure returns blank to avoid misleading percentages. You can then display this measure as a tooltip or data label in your visual. If your period column is not numeric, this logic will need to be adjusted using a rank or index to establish chronological order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 13:15:06 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2025-05-13T13:15:06Z</dc:date>
    <item>
      <title>Deltas within a Measure (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4690815#M179628</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;again, I need help because I am totally lost:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;with the help of this forum, I was able to create this chart, and there is now only missing, to show the deltas between the periods (-15% between 2020 and 2021 i.e.).&amp;nbsp;&lt;BR /&gt;But I do not have an idea, how to calculate it, because to be able to create that chart, I have the values in one measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-justify"&gt;&lt;SPAN&gt;YaQ_Volume =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-justify"&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-justify"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Unrelated Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Category]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-justify"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Year"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[SalesFinal]&lt;/S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unrelated Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Period]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;[QYear]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-justify"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;[Yr]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;[Yr]&lt;/SPAN&gt;&lt;SPAN&gt;))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to insert now also the deltas between the periods?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any tipp and advice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:25:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4690815#M179628</guid>
      <dc:creator>Pfoster</dc:creator>
      <dc:date>2025-05-13T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deltas within a Measure (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4690984#M179633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1260252" data-lia-user-login="Pfoster" class="lia-mention lia-mention-user"&gt;Pfoster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To calculate the deltas between periods in your chart using the existing YaQ_Volume measure, you can create a separate DAX measure that captures the previous period’s value and computes the percentage change. Assuming your 'Unrelated Date'[Period] column contains sortable numeric values (e.g., 2020, 2021, or Q1 as 1, Q2 as 2, etc.), use the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YaQ_Delta = 
VAR CurrentValue = [YaQ_Volume]
VAR PrevValue = 
    CALCULATE(
        [YaQ_Volume],
        FILTER(
            ALL('Unrelated Date'),
            'Unrelated Date'[Category] = MAX('Unrelated Date'[Category]) &amp;amp;&amp;amp;
            'Unrelated Date'[Period] = MAX('Unrelated Date'[Period]) - 1
        )
    )
RETURN 
IF(
    NOT ISBLANK(PrevValue),
    DIVIDE(CurrentValue - PrevValue, PrevValue),
    BLANK()
)
&lt;/LI-CODE&gt;
&lt;P&gt;This measure evaluates the current value and compares it to the previous period’s value by subtracting one from the current 'Unrelated Date'[Period]. It returns the percentage difference. If the previous value is blank, the measure returns blank to avoid misleading percentages. You can then display this measure as a tooltip or data label in your visual. If your period column is not numeric, this logic will need to be adjusted using a rank or index to establish chronological order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 13:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4690984#M179633</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-05-13T13:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deltas within a Measure (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4692793#M179697</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1260252" data-lia-user-login="Pfoster" class="lia-mention lia-mention-user"&gt;Pfoster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.&lt;/P&gt;
&lt;P&gt;If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Chaithanya&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 15:12:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deltas-within-a-Measure/m-p/4692793#M179697</guid>
      <dc:creator>v-kathullac</dc:creator>
      <dc:date>2025-05-14T15:12:12Z</dc:date>
    </item>
  </channel>
</rss>

