<?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 undefined in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/738745#M2174</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble filtering out biggest (most recent date). What I need to do is quite simple: I have columns : Debt and Date. I want to add the debt column after filtering it by date columnm, so it only adds the numbers (debt) of the most recent month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; tried to do it in a following way:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LatestMonthBD = IF('as of 6 30 2019'[As of date] = max([As of Date].[MonthNo]), 'As of 6 30 2019'[Bad Debt Reserve (USD)], 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2) Adding a measure sum(latestMonthBD)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, the IF does not work because it returns 0 for all months. Any idea why? Or how I could do it alternatively? I will also need a second to largest day( aka previous month) sum, not sure how to filter it out either. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help is appreciated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ruta&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 12 Jul 2019 12:39:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-12T12:39:07Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/738745#M2174</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble filtering out biggest (most recent date). What I need to do is quite simple: I have columns : Debt and Date. I want to add the debt column after filtering it by date columnm, so it only adds the numbers (debt) of the most recent month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; tried to do it in a following way:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LatestMonthBD = IF('as of 6 30 2019'[As of date] = max([As of Date].[MonthNo]), 'As of 6 30 2019'[Bad Debt Reserve (USD)], 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2) Adding a measure sum(latestMonthBD)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, the IF does not work because it returns 0 for all months. Any idea why? Or how I could do it alternatively? I will also need a second to largest day( aka previous month) sum, not sure how to filter it out either. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help is appreciated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ruta&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/738745#M2174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-12T12:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/739228#M2205</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 16:24:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/739228#M2205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-13T16:24:04Z</dc:date>
    </item>
  </channel>
</rss>

