<?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 I want to measure MTD and PM MTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-measure-MTD-and-PM-MTD/m-p/3972074#M154030</link>
    <description>&lt;P&gt;Hello! I'm still relatively new to Time Intelligence Measures. Ultimately I want to measure MTD-PM (Month to Date of Previous Month) but it seems I can't even calculate MTD correctly.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the picture, you can see on top the total volume of the month and down on each side is a different approach of MTD (that I remember seeing, one might not be used correctly in this scenario). Firstly, I would expect to see the bar charts in an increasing pattern. If MTD is the cumulative function then I would expect day 2 to be the sum of day 1 + 2 and so on but I'm not seeing this effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my DAX codes (My Tons volume is a Measure itself, it is not the SUM of a table column):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using DATESMTD&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;DATESMTD_Tons = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(Medidas[Toneladas], &lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(Fecha[DocDate]))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Using TOTALMTD&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;TOTALMTD_Tons = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALMTD&lt;/SPAN&gt;&lt;SPAN&gt;(Medidas[Toneladas],Fecha[DocDate])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a Day filter on the top right side of the image where I put this DAX codes to the test. I filter through each day but I don't see the summing effect. For instance check day 6 and day 7:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect by day 7 to see 104+43 = 147 as my Tons volume.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my main relevant model relationships. &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;Medidas"&lt;/STRONG&gt; stands for &lt;STRONG&gt;Measures&lt;/STRONG&gt; in Spanish. I'm not sure if somehow my Measures must be connected to my Date table (&lt;STRONG&gt;Fehca&lt;/STRONG&gt; in Spanish)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-.-.-.-.&lt;/P&gt;&lt;P&gt;Once I get this down I would then like to simply calculate with DATEADD (I would guess) the Previous Month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I'm being clear enough &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 17:41:05 GMT</pubDate>
    <dc:creator>hctrgrc</dc:creator>
    <dc:date>2024-06-04T17:41:05Z</dc:date>
    <item>
      <title>I want to measure MTD and PM MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-measure-MTD-and-PM-MTD/m-p/3972074#M154030</link>
      <description>&lt;P&gt;Hello! I'm still relatively new to Time Intelligence Measures. Ultimately I want to measure MTD-PM (Month to Date of Previous Month) but it seems I can't even calculate MTD correctly.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the picture, you can see on top the total volume of the month and down on each side is a different approach of MTD (that I remember seeing, one might not be used correctly in this scenario). Firstly, I would expect to see the bar charts in an increasing pattern. If MTD is the cumulative function then I would expect day 2 to be the sum of day 1 + 2 and so on but I'm not seeing this effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my DAX codes (My Tons volume is a Measure itself, it is not the SUM of a table column):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using DATESMTD&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;DATESMTD_Tons = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(Medidas[Toneladas], &lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(Fecha[DocDate]))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Using TOTALMTD&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;TOTALMTD_Tons = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALMTD&lt;/SPAN&gt;&lt;SPAN&gt;(Medidas[Toneladas],Fecha[DocDate])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a Day filter on the top right side of the image where I put this DAX codes to the test. I filter through each day but I don't see the summing effect. For instance check day 6 and day 7:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect by day 7 to see 104+43 = 147 as my Tons volume.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my main relevant model relationships. &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;Medidas"&lt;/STRONG&gt; stands for &lt;STRONG&gt;Measures&lt;/STRONG&gt; in Spanish. I'm not sure if somehow my Measures must be connected to my Date table (&lt;STRONG&gt;Fehca&lt;/STRONG&gt; in Spanish)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-.-.-.-.&lt;/P&gt;&lt;P&gt;Once I get this down I would then like to simply calculate with DATEADD (I would guess) the Previous Month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I'm being clear enough &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 17:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-measure-MTD-and-PM-MTD/m-p/3972074#M154030</guid>
      <dc:creator>hctrgrc</dc:creator>
      <dc:date>2024-06-04T17:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: I want to measure MTD and PM MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-measure-MTD-and-PM-MTD/m-p/3972164#M154033</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="734864" data-lia-user-login="hctrgrc" class="lia-mention lia-mention-user"&gt;hctrgrc&lt;/a&gt;&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 17:49:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-measure-MTD-and-PM-MTD/m-p/3972164#M154033</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-06-04T17:49:58Z</dc:date>
    </item>
  </channel>
</rss>

