<?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: If date is in between two dates if condition not giving proper results. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787653#M147966</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am unable to fill with 1's in between start date and end date.I think i am missing something.I am unable to attach Pbi file here. Please help me to resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Mar 2024 17:53:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-23T17:53:04Z</dc:date>
    <item>
      <title>If date is in between two dates if condition not giving proper results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3772763#M147424</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the image left side is my table data and the right side i am expecting to display the data when my date is in between start date and end date,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my date is &amp;gt; Startdate &amp;amp;&amp;amp; my date &amp;lt;= ENd date&amp;nbsp; it has to give result as 1 else 0 .&lt;/P&gt;&lt;P&gt;as shown in the image matrix date.&lt;/P&gt;&lt;P&gt;Can any on ehlp me how do i do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 00:01:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3772763#M147424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T00:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: If date is in between two dates if condition not giving proper results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3773321#M147440</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
CALENDAR(
    DATE(2024,2,1),
    DATE(2024,2,20))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Step1 =
var _min=
MINX(FILTER(ALL('Table'),'Table'[TestNO]=MAX('Table'[TestNO])&amp;amp;&amp;amp;'Table'[ProjectNo]=MAX('Table'[ProjectNo])),[StartDate])
var _max=
MAXX(FILTER(ALL('Table'),'Table'[TestNO]=MAX('Table'[TestNO])&amp;amp;&amp;amp;'Table'[ProjectNo]=MAX('Table'[ProjectNo])),[End Date])
var _mingroup=
MINX(FILTER(ALL('Table'),'Table'[TestNO]=MAX('Table'[TestNO])),[StartDate])
var _maxgroup=
MAXX(FILTER(ALL('Table'),'Table'[TestNO]=MAX('Table'[TestNO])),[End Date])
return
CONCATENATEX(
    FILTER(ALL('Table 2'),
    'Table 2'[Date]&amp;gt;=_min&amp;amp;&amp;amp;'Table 2'[Date]&amp;lt;=_max),'Table 2'[Date],"-"
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Step2 =
var _step2=
CONCATENATEX(
    FILTER(ALL('Table'),
    'Table'[TestNO]=MAX('Table'[TestNO])),[Step1],"-"
    )
return
IF(
CONTAINSSTRING(
    _step2,MAX('Table 2'[Date]))=TRUE(),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;Here's a discovery that needs to be explained to you, according to your rules, [TestNo] also belongs to 1 on 2/6/2024&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;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 04:49:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3773321#M147440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T04:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: If date is in between two dates if condition not giving proper results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3776142#M147581</link>
      <description>&lt;P&gt;Thank you very very much.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 18:58:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3776142#M147581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T18:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: If date is in between two dates if condition not giving proper results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787653#M147966</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am unable to fill with 1's in between start date and end date.I think i am missing something.I am unable to attach Pbi file here. Please help me to resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 17:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787653#M147966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-23T17:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: If date is in between two dates if condition not giving proper results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787654#M147967</link>
      <description>&lt;P&gt;First Step&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;First_Step = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _min=&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(tblTeeCards[Tee_Start])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _max=&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;('tblTeeCards'[Tee_End])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; Dates= &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;('Table 2'[Column])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; Concat= &lt;/SPAN&g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TER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('tblTeeCards'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'tblTeeCards'[Owning_Panel]=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('tblTeeCards'[Owning_Panel])),[First_Step],&lt;/SPAN&gt;&lt;SPAN&gt;"-"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; _step2,&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table 2'[Column]))=&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Mar 2024 17:54:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787654#M147967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-23T17:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: If date is in between two dates if condition not giving proper results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787658#M147969</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If you see this image, i could able to concateneate dates between start and end dates, the dates are perfect but i am unable to fill with 1's when date matching&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 17:57:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-date-is-in-between-two-dates-if-condition-not-giving-proper/m-p/3787658#M147969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-23T17:57:06Z</dc:date>
    </item>
  </channel>
</rss>

