<?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: DAX for calculating Months on Book in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-calculating-Months-on-Book/m-p/1449019#M27197</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;if(max(Date[Date]) &amp;lt;=CALCULATE(max(Sales[Sales date]),DATESYTD('Date'[Date])), CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date])),blank())&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 09:28:27 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-10-22T09:28:27Z</dc:date>
    <item>
      <title>DAX for calculating Months on Book</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-calculating-Months-on-Book/m-p/1448539#M27184</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you assist. I'm trying to calculate Months on book to replicate this graph.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Currently I've calculated it this way :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MOB = ([MaxYear]-'ROLL RATES'[Year])*12 + ([MaxMonth]- 'ROLL RATES'[Month]) but its reversed my values.All the highlighted data points should start at MOB1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Oct 2020 06:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-calculating-Months-on-Book/m-p/1448539#M27184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-22T06:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for calculating Months on Book</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-calculating-Months-on-Book/m-p/1449019#M27197</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;if(max(Date[Date]) &amp;lt;=CALCULATE(max(Sales[Sales date]),DATESYTD('Date'[Date])), CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date])),blank())&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 09:28:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-calculating-Months-on-Book/m-p/1449019#M27197</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-22T09:28:27Z</dc:date>
    </item>
  </channel>
</rss>

