<?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: [BC30201] Expression expected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3801924#M148650</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="704016" data-lia-user-login="samratpbi" class="lia-mention lia-mention-user"&gt;samratpbi&lt;/a&gt;&amp;nbsp;,Thanks for the quick reply.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Regarding your question, there may be a problem in checking whether the field value is null or not. You can try to use 'IsNothing' instead of '== BLANK()' for null value determination. Change your expression:&lt;BR /&gt;IIF(IsNothing(Fields!DriftCorrection_pH4Value.Value), &lt;BR /&gt;(Fields!DriftCorrection_pH7Value.Value + Fields!DriftCorrection_pH10Value.Value) / 2.0,&lt;BR /&gt;(Fields!DriftCorrection_pH7Value.Value + Fields!DriftCorrection_pH4Value.Value) / 2.0)&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 10:09:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-01T10:09:42Z</dc:date>
    <item>
      <title>[BC30201] Expression expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3776129#M147578</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run the following expression in POWER BI but I get this error:&amp;nbsp;[BC30201] Expression expected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=iif ( Fields!DriftCorrection_pH4Value.Value== Blank(),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(Fields!DriftCorrection_pH7Value.Value +Fields!DriftCorrection_pH10Value.Value)/2.0,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(Fields!DriftCorrection_pH7Value.Value +Fields!DriftCorrection_pH4Value.Value)/2.0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 18:42:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3776129#M147578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: [BC30201] Expression expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3776300#M147596</link>
      <description>&lt;P&gt;Hi, not sure about all the exact table and column name you have, however what I can see your measure starts with iif. As per my understanding, there is nothing iif, can you please change it to IF.&lt;BR /&gt;&lt;BR /&gt;If this resolves your problem, then please make it as solution, Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 21:31:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3776300#M147596</guid>
      <dc:creator>samratpbi</dc:creator>
      <dc:date>2024-03-19T21:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: [BC30201] Expression expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3780451#M147713</link>
      <description>&lt;P&gt;Hi, Thanks, I did it. unfortunately, it is still the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 19:27:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3780451#M147713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-20T19:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: [BC30201] Expression expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3801924#M148650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="704016" data-lia-user-login="samratpbi" class="lia-mention lia-mention-user"&gt;samratpbi&lt;/a&gt;&amp;nbsp;,Thanks for the quick reply.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Regarding your question, there may be a problem in checking whether the field value is null or not. You can try to use 'IsNothing' instead of '== BLANK()' for null value determination. Change your expression:&lt;BR /&gt;IIF(IsNothing(Fields!DriftCorrection_pH4Value.Value), &lt;BR /&gt;(Fields!DriftCorrection_pH7Value.Value + Fields!DriftCorrection_pH10Value.Value) / 2.0,&lt;BR /&gt;(Fields!DriftCorrection_pH7Value.Value + Fields!DriftCorrection_pH4Value.Value) / 2.0)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 10:09:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3801924#M148650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-01T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: [BC30201] Expression expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3827832#M149666</link>
      <description>&lt;P&gt;Thanks!! this worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 14:29:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/BC30201-Expression-expected/m-p/3827832#M149666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-10T14:29:34Z</dc:date>
    </item>
  </channel>
</rss>

