<?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: Is there an alternative to Edate that calculates the last 180 days instead of 6 months? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026431#M158992</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies as my initial post could of been a bit clearer in hindsight.&lt;BR /&gt;In the 'count' column of table1, I am trying to flag if the date was in the last 180 days (it is not technically a running count or sum). The value that I am looking to return in the 'Count' column&lt;BR /&gt;is, 1 if it is within 180 days, or blank if older than 180 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original formula appears to work for 6 months, I am just struggling to amend to 180 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Todays_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;DateAction&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Count&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;25/05/24&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;16/04/24&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;01/12/23&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Fri, 05 Jul 2024 06:46:14 GMT</pubDate>
    <dc:creator>ClemFandango</dc:creator>
    <dc:date>2024-07-05T06:46:14Z</dc:date>
    <item>
      <title>Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025195#M158891</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping someone can help.&lt;/P&gt;&lt;P&gt;I have the following function that returns 1&amp;nbsp; 'Count' for each ID where the ‘DateAction’ is within 6 months of ‘Todays_date’.&lt;/P&gt;&lt;P&gt;Calculated column:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Last6Months = Var endDate = Table1[Todays_Date] Var startDate = EDATE(endDate, -6) RETURN CALCULATE(Table1 [Activity], Table1 [DateAction] &amp;gt;= startDate, Table1 [DateAction] &amp;lt;= endDate)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Activity = COUNTROWS(Table1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function works well, but I would like to improve the ‘Edate’ part. Do you have any ideas how I can change the above function to be within the last 180 days, instead of last 6 months?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Todays_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;DateAction&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Count&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;25/05/24&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;16/04/24&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;01/12/23&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas are greatly appreciated,&lt;/P&gt;&lt;P&gt;CF&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 13:04:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025195#M158891</guid>
      <dc:creator>ClemFandango</dc:creator>
      <dc:date>2024-07-04T13:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025303#M158894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478905" data-lia-user-login="ClemFandango" class="lia-mention lia-mention-user"&gt;ClemFandango&lt;/a&gt;&amp;nbsp;try v2 below&lt;/P&gt;
&lt;P&gt;Last6Months v2 = &lt;BR /&gt;Var endDate = Table1[Todays_Date] &lt;BR /&gt;Var startDate = DATEADD ( endDate, -180, DAY )&lt;/P&gt;
&lt;P&gt;RETURN CALCULATE(Table1 [Activity], Table1 [DateAction] &amp;gt;= startDate, Table1 [DateAction] &amp;lt;= endDate)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:04:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025303#M158894</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-07-04T14:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025307#M158895</link>
      <description>&lt;P&gt;There's something wrong with this part:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RETURN CALCULATE(Table1 [Activity]&lt;/LI-CODE&gt;
&lt;P&gt;no aggregation?&lt;/P&gt;
&lt;P&gt;However, for your real question, just subtract 180, I think that'll do it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:06:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025307#M158895</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2024-07-04T14:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025337#M158897</link>
      <description>&lt;LI-CODE lang="markup"&gt;Last_180_days =
VAR endDate = Table1[Todays_Date]
VAR startDate =
    MAX ( 'Calendar'[Date] ) - 180
RETURN
    CALCULATE (
        SUM ( Table1[Activity] ),
        Table1[DateAction] &amp;gt;= startDate,
        Table1[DateAction] &amp;lt;= endDate
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4025337#M158897</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-07-04T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026431#M158992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies as my initial post could of been a bit clearer in hindsight.&lt;BR /&gt;In the 'count' column of table1, I am trying to flag if the date was in the last 180 days (it is not technically a running count or sum). The value that I am looking to return in the 'Count' column&lt;BR /&gt;is, 1 if it is within 180 days, or blank if older than 180 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original formula appears to work for 6 months, I am just struggling to amend to 180 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Todays_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;DateAction&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Count&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;25/05/24&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;16/04/24&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/06/24&lt;/TD&gt;&lt;TD&gt;01/12/23&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026431#M158992</guid>
      <dc:creator>ClemFandango</dc:creator>
      <dc:date>2024-07-05T06:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026438#M158993</link>
      <description>&lt;P&gt;Many thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;, unfortunately when i try to run this, the 'endDate' (in the DATEADD function) is highlighted with a red underline and an error message of "The first argument to 'DATEADD' must specify a column". Any ideas how i can amend the formula?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026438#M158993</guid>
      <dc:creator>ClemFandango</dc:creator>
      <dc:date>2024-07-05T06:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026698#M159012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478905" data-lia-user-login="ClemFandango" class="lia-mention lia-mention-user"&gt;ClemFandango&lt;/a&gt;&amp;nbsp;try v3&lt;/P&gt;
&lt;P&gt;Last6Months v3 =&lt;BR /&gt;Var endDate = Table1[Todays_Date]&lt;BR /&gt;Var startDate = DATEADD ( Table1[Todays_Date], -180, DAY )&lt;/P&gt;
&lt;P&gt;RETURN CALCULATE(Table1 [Activity], Table1 [DateAction] &amp;gt;= startDate, Table1 [DateAction] &amp;lt;= endDate)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 08:54:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026698#M159012</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-07-05T08:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026890#M159026</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp; much appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This appears to return 1 for everything (no blanks). All rows are incorrectly defined as being within 180 days.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 10:34:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026890#M159026</guid>
      <dc:creator>ClemFandango</dc:creator>
      <dc:date>2024-07-05T10:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026927#M159030</link>
      <description>&lt;P&gt;I have spotted another issues with my methodolgy - I am obviously missing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I current have this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Last6Months = Var endDate = Table1[Todays_Date] Var startDate = EDATE(endDate, -6) RETURN CALCULATE(Table1 [Activity], Table1 [DateAction] &amp;gt;= startDate, Table1 [DateAction] &amp;lt;= endDate)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a measure (I think this is where my issues are arising and my methodology is wrong)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Activity = COUNTROWS(Table1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would like to add another calculated column for the last 3 months (or 90 days).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought I would be able to add another calculated column like below, but i get a circular dependency error message 'A circular dependency was detected: Table1[Column], Table[Last_6Months], Table1[Column].'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Last3Months = Var endDate = Table1[Todays_Date] Var startDate = EDATE(endDate, -3) RETURN CALCULATE(Table1 [Activity], Table1 [DateAction] &amp;gt;= startDate, Table1 [DateAction] &amp;lt;= endDate)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea where I am going wrong, and how i can add multipe columns for Last3Months &amp;amp; Last6Months?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just trying to return 1 in the 'Count' column where the 'DateAction' is within 6/3 months of 'Todays_Date'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All help eternally appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CF&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 11:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4026927#M159030</guid>
      <dc:creator>ClemFandango</dc:creator>
      <dc:date>2024-07-05T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4029650#M159276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478905" data-lia-user-login="ClemFandango" class="lia-mention lia-mention-user"&gt;ClemFandango&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478905" data-lia-user-login="ClemFandango" class="lia-mention lia-mention-user"&gt;ClemFandango&lt;/a&gt;&amp;nbsp;, is the following the result you want? If so, you can try creating the following calculated columns.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count180days = 
VAR _last180days = [Todays_date] - 180
RETURN
IF([DateAction] &amp;gt;= _last180days &amp;amp;&amp;amp; [DateAction] &amp;lt;= [Todays_date], 1, BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count90days = 
VAR _last90days = [Todays_date] - 90
RETURN
IF([DateAction] &amp;gt;= _last90days &amp;amp;&amp;amp; [DateAction] &amp;lt;= [Todays_date], 1, BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4029650#M159276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T08:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to Edate that calculates the last 180 days instead of 6 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4030142#M159329</link>
      <description>&lt;P&gt;Perfection!&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huge thanks to you!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 11:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-an-alternative-to-Edate-that-calculates-the-last-180/m-p/4030142#M159329</guid>
      <dc:creator>ClemFandango</dc:creator>
      <dc:date>2024-07-08T11:54:28Z</dc:date>
    </item>
  </channel>
</rss>

