<?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: Adding Last data point label to a 12mth Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Last-data-point-label-to-a-12mth-Calculation/m-p/2071316#M46854</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;I am surprised that your VALUES() part doesn't throw an error. The second parameter of DATESINPERIOD expects a single start date. Maybe VALUES() returns a single row table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sanitized sample data in usable format (not as a picture - inserting it into a table would be good) and show the expected outcome.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Sep 2021 23:52:02 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-09-12T23:52:02Z</dc:date>
    <item>
      <title>Adding Last data point label to a 12mth Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Last-data-point-label-to-a-12mth-Calculation/m-p/1941832#M42250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to setup a 12mth rolling measure that calulates a frequency rate of injuries against hours:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'12mth TRIFR' = '12mth injury count' * 1000000 / '12mth hours'&lt;UL&gt;&lt;LI&gt;'12mth injury count' = CALCULATE (&amp;nbsp;&lt;SPAN&gt;SUM ( MonthEnd[TRI] ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATESINPERIOD (&lt;/SPAN&gt;&lt;SPAN&gt;MonthEnd[Date],&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;VALUES ( MonthEnd[Date] ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-12,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;'12mth hours' = CALCULATE (&amp;nbsp;&lt;SPAN&gt;SUM ( MonthEnd[Hours] ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATESINPERIOD (&lt;/SPAN&gt;&lt;SPAN&gt;MonthEnd[Date],&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;VALUES ( MonthEnd[Date] ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-12,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This all plots as i would expect with the correct values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to find guides on how to show the last data point but everything i try doesnt give me the correct answer. What i get is the the most recent TRFIR but its based of 1 month of data rather than a 12mth (which i am sure if based on the filter of the current month). So my approach appears to stifle my result as well as giving me a single data label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to get the 12mth calculation to work as well as only show the last data point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 06:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Last-data-point-label-to-a-12mth-Calculation/m-p/1941832#M42250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-07T06:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Last data point label to a 12mth Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Last-data-point-label-to-a-12mth-Calculation/m-p/2071316#M46854</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;I am surprised that your VALUES() part doesn't throw an error. The second parameter of DATESINPERIOD expects a single start date. Maybe VALUES() returns a single row table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sanitized sample data in usable format (not as a picture - inserting it into a table would be good) and show the expected outcome.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Sep 2021 23:52:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Last-data-point-label-to-a-12mth-Calculation/m-p/2071316#M46854</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-09-12T23:52:02Z</dc:date>
    </item>
  </channel>
</rss>

