<?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: Create a calculated column for a specifik date range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392107#M62256</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for the feedback. In my date table (see picture) I want to create a calculated dynamic table called "date range". The dates that are between the 25:th and 25:th the month before should have a 1 in "date range" column. In the example below the dates between 25:th of january and 25:th of february shoud have 1 in "date range" column and the rest of the dates 0 in "date range" column.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;Kind Regards&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 10:50:31 GMT</pubDate>
    <dc:creator>Regnbagar1</dc:creator>
    <dc:date>2022-03-14T10:50:31Z</dc:date>
    <item>
      <title>Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2391906#M62234</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I need help with creating a calculated column in my date table, "Date_tabel". I would like to have 1 if it is between last 25:th and the 25:th before that otherwise 0.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;1. Today (the 14:th of march) I would like to have the dates between 25:th of january and 25:th of february marked up.&amp;nbsp;&lt;BR /&gt;2. The 26:th of march I would like to have the dates between 25:th of february and the 25:th of march marked up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnak you!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 09:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2391906#M62234</guid>
      <dc:creator>Regnbagar1</dc:creator>
      <dc:date>2022-03-14T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392032#M62247</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365764" data-lia-user-login="Regnbagar1" class="lia-mention lia-mention-user"&gt;Regnbagar1&lt;/a&gt; ,The information you have provided is not making the problem clear to me. Can you please explain with an example. &lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;BR /&gt;&lt;STRONG&gt;Appreciate your Kudos.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 10:25:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392032#M62247</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-14T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392107#M62256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for the feedback. In my date table (see picture) I want to create a calculated dynamic table called "date range". The dates that are between the 25:th and 25:th the month before should have a 1 in "date range" column. In the example below the dates between 25:th of january and 25:th of february shoud have 1 in "date range" column and the rest of the dates 0 in "date range" column.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 10:50:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392107#M62256</guid>
      <dc:creator>Regnbagar1</dc:creator>
      <dc:date>2022-03-14T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392334#M62276</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365764" data-lia-user-login="Regnbagar1" class="lia-mention lia-mention-user"&gt;Regnbagar1&lt;/a&gt; , try a new column like &lt;/P&gt;
&lt;P&gt;if([Date] &amp;lt;= Today() ,if(Day([Date])&amp;lt;=25, datediff(eomonth([Date],-2) +26 ,datediff(eomonth([Date],-1) +26) ,today(),month), blank())&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 12:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392334#M62276</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-14T12:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392349#M62277</link>
      <description>&lt;P&gt;Thank you so much. When I try the function I get the error message "Too few arguments were passed to the DATEDIFF function. The minimum argument count for the function is 3."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can handle that in the best way?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 12:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2392349#M62277</guid>
      <dc:creator>Regnbagar1</dc:creator>
      <dc:date>2022-03-14T12:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2399377#M62711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365764" data-lia-user-login="Regnbagar1" class="lia-mention lia-mention-user"&gt;Regnbagar1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _previous1 =
    DATE ( YEAR ( EDATE ( TODAY (), -1 ) ), MONTH ( EDATE ( TODAY (), -1 ) ), 25 )
VAR _previous2 =
    DATE ( YEAR ( EDATE ( TODAY (), -2 ) ), MONTH ( EDATE ( TODAY (), -2 ) ), 25 )
RETURN
    IF (
        'Table'[date] &amp;gt; _previous2
            &amp;amp;&amp;amp; 'Table'[date] &amp;lt;= _previous1,
        1,
        IF ( TODAY () &amp;gt;= _previous1, 0, BLANK () )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 02:53:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2399377#M62711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-17T02:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated column for a specifik date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2400038#M62763</link>
      <description>&lt;P&gt;Thank you so much for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 09:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-column-for-a-specifik-date-range/m-p/2400038#M62763</guid>
      <dc:creator>Regnbagar1</dc:creator>
      <dc:date>2022-03-17T09:03:19Z</dc:date>
    </item>
  </channel>
</rss>

