<?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 Filtering a column based on criteria based on another column filtered by date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481225#M67918</link>
    <description>&lt;P&gt;I have a table that contains different columns. These are the ones I need to use for what I want:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PropertyStatus&lt;/LI&gt;&lt;LI&gt;MoveInDate&lt;/LI&gt;&lt;LI&gt;MoveOutDate&lt;/LI&gt;&lt;LI&gt;CaseNumber.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If a property/CaseNumber has data under MoveInDate, it does not have any data for MoveOutDate, and viceversa.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PropertyStatus&lt;/STRONG&gt; can have the following values: &lt;STRONG&gt;Complete, In Process &amp;amp; Not Started&lt;/STRONG&gt; (among others I do not need to use for this example)&lt;/P&gt;&lt;P&gt;Every Property has to be under the status of "Complete" 15 &lt;U&gt;&lt;STRONG&gt;business&lt;/STRONG&gt;&lt;/U&gt; days before the MoveInDate/ MoveOutDate.&lt;/P&gt;&lt;P&gt;I want to have two columns that says: "Delayed" if this condition is not met.&lt;/P&gt;&lt;P&gt;One column will be named MoveInDelayedCaseNumber &amp;amp; another one named:&amp;nbsp;MoveOutDelayedCaseNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Pseudocode for&amp;nbsp;MoveInDelayedCaseNumber:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;If (PropertyStatus = 'Not Started' OR PropertyStatus = 'In Process') AND MoveInDate is less than 15 business days from Today(), Delayed, (otherwise) OnTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Pseudocode for&amp;nbsp;MoveOutDelayedCaseNumber:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;If (PropertyStatus = 'Not Started' OR PropertyStatus = 'In Process') AND MoveOutDate is less than 15 business days from Today(), Delayed, (otherwise) OnTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this? Please feel free to propose another approach if you think it will be a better option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 18:10:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-27T18:10:49Z</dc:date>
    <item>
      <title>Filtering a column based on criteria based on another column filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481225#M67918</link>
      <description>&lt;P&gt;I have a table that contains different columns. These are the ones I need to use for what I want:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PropertyStatus&lt;/LI&gt;&lt;LI&gt;MoveInDate&lt;/LI&gt;&lt;LI&gt;MoveOutDate&lt;/LI&gt;&lt;LI&gt;CaseNumber.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If a property/CaseNumber has data under MoveInDate, it does not have any data for MoveOutDate, and viceversa.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PropertyStatus&lt;/STRONG&gt; can have the following values: &lt;STRONG&gt;Complete, In Process &amp;amp; Not Started&lt;/STRONG&gt; (among others I do not need to use for this example)&lt;/P&gt;&lt;P&gt;Every Property has to be under the status of "Complete" 15 &lt;U&gt;&lt;STRONG&gt;business&lt;/STRONG&gt;&lt;/U&gt; days before the MoveInDate/ MoveOutDate.&lt;/P&gt;&lt;P&gt;I want to have two columns that says: "Delayed" if this condition is not met.&lt;/P&gt;&lt;P&gt;One column will be named MoveInDelayedCaseNumber &amp;amp; another one named:&amp;nbsp;MoveOutDelayedCaseNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Pseudocode for&amp;nbsp;MoveInDelayedCaseNumber:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;If (PropertyStatus = 'Not Started' OR PropertyStatus = 'In Process') AND MoveInDate is less than 15 business days from Today(), Delayed, (otherwise) OnTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Pseudocode for&amp;nbsp;MoveOutDelayedCaseNumber:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;If (PropertyStatus = 'Not Started' OR PropertyStatus = 'In Process') AND MoveOutDate is less than 15 business days from Today(), Delayed, (otherwise) OnTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this? Please feel free to propose another approach if you think it will be a better option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481225#M67918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T18:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a column based on criteria based on another column filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481271#M67923</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;It looks like you are really close.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if you can create a calculated column with a couple of variables&lt;/P&gt;&lt;P&gt;MOVE IN Delayed =&amp;nbsp;&lt;BR /&gt;var&amp;nbsp; benchmarkdate = TODAY() +15&lt;BR /&gt;return&lt;BR /&gt;IF(Table[PropertyStatus] = "Not Started" || Table[PropertyStatus] = "In Process" &amp;amp;&amp;amp; Table[MoveInDate] &amp;lt; benchmarkdate, "Delayed", "On Time"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you try this one and see if it works for you? The next one will be very similiar - just sub in MoveOutDate for the MOVEIN Date.&lt;/P&gt;&lt;P&gt;I hope this helps..&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:47:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481271#M67923</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T18:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a column based on criteria based on another column filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481434#M67933</link>
      <description>&lt;P&gt;It worked. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:25:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-a-column-based-on-criteria-based-on-another-column/m-p/2481434#M67933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T20:25:14Z</dc:date>
    </item>
  </channel>
</rss>

