<?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 Validating date row, cannot determine what to compare for missing date row - using IF in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744098#M36257</link>
    <description>&lt;P&gt;Hi. Currently I have a task where I need to validate - if a Shop declared its status that day, so a Date row will created in the dataset. When I want to make a summary whether the Shop had declared or not on that month, I will validate the date row and if it exist, a table of declaration will be produced - containing a 'Yes' (declared) or 'No' (does not declare). I validated the Date row with a Master Date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the issue here now is, when a Shop did not declare, and when I validate, my code(or power bi, not sure what's wrong) DOES NOT declare the missing Date as 'No'. I know whats wrong here, but I cannot figure out the solution. Due to non existent row in the dataset, power bi does not have anything to compare and validate with, thus leaving it blank instead of 'No'. Adding manually the date on the dataset, is not a very good idea for future sustainability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has any idea how to solve this issue efficiently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help, Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example here, Shop F04 did not declare their status on 27/2/2021 and 28/2/2021. There is no "No" value in the table. Here I attached together my proposed formula.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&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, 25 Mar 2021 00:52:23 GMT</pubDate>
    <dc:creator>rocky_puff</dc:creator>
    <dc:date>2021-03-25T00:52:23Z</dc:date>
    <item>
      <title>Validating date row, cannot determine what to compare for missing date row - using IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744098#M36257</link>
      <description>&lt;P&gt;Hi. Currently I have a task where I need to validate - if a Shop declared its status that day, so a Date row will created in the dataset. When I want to make a summary whether the Shop had declared or not on that month, I will validate the date row and if it exist, a table of declaration will be produced - containing a 'Yes' (declared) or 'No' (does not declare). I validated the Date row with a Master Date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the issue here now is, when a Shop did not declare, and when I validate, my code(or power bi, not sure what's wrong) DOES NOT declare the missing Date as 'No'. I know whats wrong here, but I cannot figure out the solution. Due to non existent row in the dataset, power bi does not have anything to compare and validate with, thus leaving it blank instead of 'No'. Adding manually the date on the dataset, is not a very good idea for future sustainability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has any idea how to solve this issue efficiently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help, Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example here, Shop F04 did not declare their status on 27/2/2021 and 28/2/2021. There is no "No" value in the table. Here I attached together my proposed formula.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&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, 25 Mar 2021 00:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744098#M36257</guid>
      <dc:creator>rocky_puff</dc:creator>
      <dc:date>2021-03-25T00:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Validating date row, cannot determine what to compare for missing date row - using IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744437#M36264</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292429" data-lia-user-login="rocky_puff" class="lia-mention lia-mention-user"&gt;rocky_puff&lt;/a&gt; , Not clear on the need of this column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can create a measure&lt;/P&gt;
&lt;P&gt;measure = if(countrows(Table)+0=0,"No", "Yes")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jan , feb should be filter from UI on the visual&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 05:01:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744437#M36264</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-25T05:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Validating date row, cannot determine what to compare for missing date row - using IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744662#M36272</link>
      <description>&lt;P&gt;I've tried the measure you proposed. But still can't get the "No".&lt;/P&gt;&lt;P&gt;&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;The Comparison Column is to show the result after validating whether the date exist or not (in other word, to validate whether the shop did or did not declare their status on that day)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 06:53:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1744662#M36272</guid>
      <dc:creator>rocky_puff</dc:creator>
      <dc:date>2021-03-25T06:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validating date row, cannot determine what to compare for missing date row - using IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1758636#M36762</link>
      <description>&lt;P&gt;I have found the solution. Maybe I overthink too much. So here is the solution that I used for my problem (eventhough im not sure how it works, but it works!) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Declaration = IF(MAX(February2021[Date]) == BLANK(), "No", "Yes")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will then produce the outcome that I want ! Thanks everyone, I hope it helps you too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 01:34:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Validating-date-row-cannot-determine-what-to-compare-for-missing/m-p/1758636#M36762</guid>
      <dc:creator>rocky_puff</dc:creator>
      <dc:date>2021-04-01T01:34:32Z</dc:date>
    </item>
  </channel>
</rss>

