<?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 basis different date columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272429#M169475</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is now showing some data atleast. But as I go back in the year, it is reducing the numbers which should not be the case....on investigating I found out that for startcurrentmonth variable it is giving me the data of 1/1/25....any idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 11:39:42 GMT</pubDate>
    <dc:creator>sandeep_sharma</dc:creator>
    <dc:date>2024-11-06T11:39:42Z</dc:date>
    <item>
      <title>DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272261#M169454</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 columns...as mentioned in the snapshot. I need to count the total number of Items where Expiration date and received date both are smaller as compared to the 15th of previous month (Current month is selected in a slicer. So if in slicer we select Oct, it should compare the expiration and received dats with 15th of Sep). Also, Billed date should either blank or greater then the 1st day of selected&amp;nbsp; month in slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 09:18:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272261#M169454</guid>
      <dc:creator>sandeep_sharma</dc:creator>
      <dc:date>2024-11-06T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272309#M169460</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Num items =
VAR SelectedMonth =
    MAX ( 'Date'[Date] )
VAR StartCurrentMonth =
    EOMONTH ( SelectedMonth, -1 ) + 1
VAR MidPrevMonth =
    EOMONTH ( SelectedMonth, -2 ) + 16
VAR Result =
    CALCULATE (
        COUNTROWS ( 'Table' ),
        'Table'[Expiration Date] &amp;lt; MidPrevMonth,
        'Table'[Received Date] &amp;lt; MidPrevMonth,
        'Table'[Billed Date] &amp;gt; StartCurrentMonth
            || ISBLANK ( 'Table'[Billed Date] ),
        REMOVEFILTERS ( 'Date' )
    )
RETURN
    Result
&lt;/LI-CODE&gt;
&lt;P&gt;The REMOVEFILTERS is strictly only necessary if you have a relationship from your date table to the fact table.&lt;/P&gt;
&lt;P&gt;Also, this assumes that there is one row per item. If that isn't the case then you can replace COUNTROWS with a DISTINCTCOUNT of the id column.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 09:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272309#M169460</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-11-06T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272375#M169471</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;for the response.&lt;/P&gt;&lt;P&gt;However it is giving an error saying cannot convert value 'Oct' of type text to type date. I have double checked, date in slicer has the date format on it........in the Slicer I am taking only Year and Month in one slicer...please suggest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 10:34:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272375#M169471</guid>
      <dc:creator>sandeep_sharma</dc:creator>
      <dc:date>2024-11-06T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272393#M169472</link>
      <description>&lt;P&gt;Make sure that you are using the right column in the SelectedMonth variable. Where it says MAX( 'Date'[Date]) that needs to be a column of type date. It doesn't matter which column you use in the slicer.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 10:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272393#M169472</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-11-06T10:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272429#M169475</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is now showing some data atleast. But as I go back in the year, it is reducing the numbers which should not be the case....on investigating I found out that for startcurrentmonth variable it is giving me the data of 1/1/25....any idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 11:39:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272429#M169475</guid>
      <dc:creator>sandeep_sharma</dc:creator>
      <dc:date>2024-11-06T11:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272433#M169476</link>
      <description>&lt;P&gt;Basically it showing me the date of two months ahead....so if I select nov in slicer then it shows Jan'25 and If I select Jun then it shows Aug'24&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 11:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272433#M169476</guid>
      <dc:creator>sandeep_sharma</dc:creator>
      <dc:date>2024-11-06T11:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272445#M169478</link>
      <description>&lt;P&gt;I think in the EOMONTH you've put 2 instead of -2.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 11:50:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272445#M169478</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-11-06T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX basis different date columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272512#M169482</link>
      <description>&lt;P&gt;This is awesome! Thank you so much! it worked!!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 12:44:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-basis-different-date-columns/m-p/4272512#M169482</guid>
      <dc:creator>sandeep_sharma</dc:creator>
      <dc:date>2024-11-06T12:44:02Z</dc:date>
    </item>
  </channel>
</rss>

