<?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: Done Date &amp;gt; Join Date = Breach/Yes in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1540825#M30319</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;You are right.&amp;nbsp; I was in the wrong section.&amp;nbsp; Had to jog my memory lol.&amp;nbsp; Thank you!!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 12:05:40 GMT</pubDate>
    <dc:creator>stackedcreative</dc:creator>
    <dc:date>2020-12-09T12:05:40Z</dc:date>
    <item>
      <title>Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421426#M26423</link>
      <description>&lt;P&gt;Have data for new employee join (hire) dates and done date of services for that employee.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the done date is &lt;STRONG&gt;greater&lt;/STRONG&gt; than the join date, Breach = Yes.&amp;nbsp; AKA- the services weren't completed before the user joined the company.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current formula is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Breach = IF('TABLE1'[DoneDate] &amp;gt; 'TABLE1'[JoinDate],"Yes","No")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The problem is, we have services that are still not complete, even though the join date has passed.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Need to show any Join Dates that have passed already as "Yes" to breach, even if there's no done date.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;For example, given today is 10/08/2020:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Join date: 10/01/2020&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Done date: null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Breach = Yes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How would I write this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Oct 2020 13:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421426#M26423</guid>
      <dc:creator>stackedcreative</dc:creator>
      <dc:date>2020-10-08T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421446#M26426</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="263609" data-lia-user-login="stackedcreative" class="lia-mention lia-mention-user"&gt;stackedcreative&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Breach = IF('TABLE1'[DoneDate] &amp;gt; 'TABLE1'[JoinDate] &lt;FONT color="#FF0000"&gt;|| ISBLANK('TABLE1'[DoneDate])&lt;/FONT&gt;,"Yes","No")&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 13:31:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421446#M26426</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-08T13:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421469#M26429</link>
      <description>&lt;P&gt;Thank you SO much!!!!&amp;nbsp; Fast reply and correct!!&amp;nbsp; You rock!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 13:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421469#M26429</guid>
      <dc:creator>stackedcreative</dc:creator>
      <dc:date>2020-10-08T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421750#M26437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;- while this formula works, it is pulling in all nulls as Breach = yes.&amp;nbsp; Breach should only be if the Join Date has already passed... so, the join dates it's bringing in, like 10/18/2020, hasn't occured yet, but it's marking it Yes as breach.&amp;nbsp; Any ideas?&amp;nbsp; So, is blank IF the date is less than or equal to today()... I'm not sure how to properly add this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421750#M26437</guid>
      <dc:creator>stackedcreative</dc:creator>
      <dc:date>2020-10-08T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421780#M26439</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="263609" data-lia-user-login="stackedcreative" class="lia-mention lia-mention-user"&gt;stackedcreative&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure I understand what you need. If what you want is only yes if JoinDate &amp;lt;=TODAY then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Breach = IF(('TABLE1'[DoneDate] &amp;gt; 'TABLE1'[JoinDate] &lt;FONT color="#000000"&gt;|| ISBLANK('TABLE1'[DoneDate])) &amp;amp;&amp;amp;&amp;nbsp;'TABLE1'[JoinDate] &amp;lt;= TODAY(),&amp;nbsp; &lt;/FONT&gt;,"Yes","No")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&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;</description>
      <pubDate>Thu, 08 Oct 2020 15:38:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1421780#M26439</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-08T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1422022#M26456</link>
      <description>&lt;P&gt;That did the trick&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="69760" data-lia-user-login="al" class="lia-mention lia-mention-user"&gt;al&lt;/a&gt;&amp;nbsp;!&amp;nbsp; Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:58:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1422022#M26456</guid>
      <dc:creator>stackedcreative</dc:creator>
      <dc:date>2020-10-08T17:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1533734#M30121</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;.&amp;nbsp; You helped me with this before, and it worked.&amp;nbsp; Has something changed with syntax in Power Query?&amp;nbsp; I try adding it now, and I get an error about Token Literal, and TokenRightParen.&amp;nbsp; I have tried numerous times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I type it out manually, it now adds # before the data source name, and double quotes around it.&amp;nbsp; Like &lt;FONT color="#FF0000"&gt;this&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;IF((&lt;FONT color="#FF0000"&gt;#"&lt;/FONT&gt;NASA Onboard Svc Dtl with Links&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;[DoneDate] &amp;gt; &lt;FONT color="#FF0000"&gt;#"&lt;/FONT&gt;NASA Onboard Svc Dtl with Links&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;[JoinDate], || ISBLANK(&lt;FONT color="#FF0000"&gt;#"&lt;/FONT&gt;NASA Onboard Svc Dtl with Links&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;[DoneDate])) &amp;amp;&amp;amp; &lt;FONT color="#FF0000"&gt;#"&lt;/FONT&gt;NASA Onboard Svc Dtl with Links&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;[JoinDate] &amp;lt;= TODAY(), ,"Yes","No")&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've had a *lot* of random weird issues with Power BI that I've had to directly contact Microsoft about, and am wondering is this a result of an update, a random issue, or what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 21:34:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1533734#M30121</guid>
      <dc:creator>stackedcreative</dc:creator>
      <dc:date>2020-12-04T21:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1533745#M30122</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="263609" data-lia-user-login="stackedcreative" class="lia-mention lia-mention-user"&gt;stackedcreative&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are using DAX syntax in power query?? The previous solution was in DAX, i don't understand...&lt;/P&gt;
&lt;P&gt;Additionally M is case sensitive and won't accept &lt;STRONG&gt;IF&lt;/STRONG&gt; but needs &lt;STRONG&gt;if&lt;/STRONG&gt;.&amp;nbsp; You need if ... then ... else&lt;/P&gt;
&lt;P&gt;Anyway, there are quite a few things but&amp;nbsp; first you need to clarify why you are using DAX syntax in PQ. It doesn't make sense.&lt;/P&gt;
&lt;P&gt;Always assume that it is a problem with your code rather than a system bug and you'll be correct at least 99% of the time, if not more &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 09:00:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1533745#M30122</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-12-05T09:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Done Date &gt; Join Date = Breach/Yes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1540825#M30319</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;You are right.&amp;nbsp; I was in the wrong section.&amp;nbsp; Had to jog my memory lol.&amp;nbsp; Thank you!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 12:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Done-Date-gt-Join-Date-Breach-Yes/m-p/1540825#M30319</guid>
      <dc:creator>stackedcreative</dc:creator>
      <dc:date>2020-12-09T12:05:40Z</dc:date>
    </item>
  </channel>
</rss>

