<?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 DAX formula gives a error. HELP! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-gives-a-error-HELP/m-p/1786587#M37553</link>
    <description>&lt;P&gt;When i try this dax formula;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order really in = IF([ZSOER1.Intake date]="",[Order in],IF([ZSOER1.Intake date]-[Order in]&amp;lt;-30,[Order in],[ZSOER1.Intake date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;it gives a error. It says;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="Y2IQFc"&gt;DAX comparisons do not support comparing Date values ​​with Text values. Consider using the VALUE or FORMAT function to convert one of the values.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;On excel i tried about the same formula and it worked, but not in Power Bi.&lt;/P&gt;&lt;P&gt;I thought it had something to do with de columns ZSOER.Intake date and Order in. They are both dates type columns. But i don't know for sure if that is the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows the answer so he/she can help me?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 09:58:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-15T09:58:54Z</dc:date>
    <item>
      <title>DAX formula gives a error. HELP!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-gives-a-error-HELP/m-p/1786587#M37553</link>
      <description>&lt;P&gt;When i try this dax formula;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order really in = IF([ZSOER1.Intake date]="",[Order in],IF([ZSOER1.Intake date]-[Order in]&amp;lt;-30,[Order in],[ZSOER1.Intake date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;it gives a error. It says;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="Y2IQFc"&gt;DAX comparisons do not support comparing Date values ​​with Text values. Consider using the VALUE or FORMAT function to convert one of the values.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;On excel i tried about the same formula and it worked, but not in Power Bi.&lt;/P&gt;&lt;P&gt;I thought it had something to do with de columns ZSOER.Intake date and Order in. They are both dates type columns. But i don't know for sure if that is the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows the answer so he/she can help me?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 09:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-gives-a-error-HELP/m-p/1786587#M37553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-15T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula gives a error. HELP!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-gives-a-error-HELP/m-p/1786593#M37554</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , for date datatype you can not check ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF( isblank([ZSOER1.Intake date]),[Order in],IF( datediff([ZSOER1.Intake date],[Order in], day)&amp;lt;-30,[Order in],[ZSOER1.Intake date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Negative datediff means , first date is bigger&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 10:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-gives-a-error-HELP/m-p/1786593#M37554</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-15T10:04:55Z</dc:date>
    </item>
  </channel>
</rss>

