<?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 expression - Token Literal Expected error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290645#M22165</link>
    <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im running into an issue with the formula listed below.&amp;nbsp; Image below as well to show where the error is showing.&amp;nbsp; I am still new to learning DAX expressions and new to learning these type of errors in Power BI.&amp;nbsp; The colum type I text since I am trying to either pass a number or text value depending on the sitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also my first post here. So bear with me on learning the proper information to write these.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt; [Subsidiary]=100 &amp;amp;&amp;amp; [Recharge Subsidiary]= 100 &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "OVERHEAD" &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]&amp;gt;0 &amp;amp;&amp;amp; [Recharge Subsidiary]&amp;gt;0 &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "00"&amp;amp;[Recharge Subsidiary] &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]="" &amp;amp;&amp;amp; [Recharge Subsidiary]&amp;gt;0 &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "00"&amp;amp;[Recharge Subsidiary] &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]=100 &amp;amp;&amp;amp; [Recharge Subsidiary]="" &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "OVERHEAD" &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]="" &amp;amp;&amp;amp; [Recharge Subsidiary]=""&lt;FONT color="#0000FF"&gt; then&lt;/FONT&gt; "OVERHEAD" &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]&amp;gt;0 &amp;amp;&amp;amp; [Recharge Subsidiary]="" &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "00"&amp;amp; [Subsidiary] &lt;FONT color="#0000FF"&gt;else&lt;/FONT&gt; "TBD"&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 13:59:01 GMT</pubDate>
    <dc:creator>chrisalexander</dc:creator>
    <dc:date>2020-08-12T13:59:01Z</dc:date>
    <item>
      <title>DAX expression - Token Literal Expected error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290645#M22165</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im running into an issue with the formula listed below.&amp;nbsp; Image below as well to show where the error is showing.&amp;nbsp; I am still new to learning DAX expressions and new to learning these type of errors in Power BI.&amp;nbsp; The colum type I text since I am trying to either pass a number or text value depending on the sitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also my first post here. So bear with me on learning the proper information to write these.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt; [Subsidiary]=100 &amp;amp;&amp;amp; [Recharge Subsidiary]= 100 &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "OVERHEAD" &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]&amp;gt;0 &amp;amp;&amp;amp; [Recharge Subsidiary]&amp;gt;0 &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "00"&amp;amp;[Recharge Subsidiary] &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]="" &amp;amp;&amp;amp; [Recharge Subsidiary]&amp;gt;0 &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "00"&amp;amp;[Recharge Subsidiary] &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]=100 &amp;amp;&amp;amp; [Recharge Subsidiary]="" &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "OVERHEAD" &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]="" &amp;amp;&amp;amp; [Recharge Subsidiary]=""&lt;FONT color="#0000FF"&gt; then&lt;/FONT&gt; "OVERHEAD" &lt;FONT color="#0000FF"&gt;else if&lt;/FONT&gt; [Subsidiary]&amp;gt;0 &amp;amp;&amp;amp; [Recharge Subsidiary]="" &lt;FONT color="#0000FF"&gt;then&lt;/FONT&gt; "00"&amp;amp; [Subsidiary] &lt;FONT color="#0000FF"&gt;else&lt;/FONT&gt; "TBD"&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 13:59:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290645#M22165</guid>
      <dc:creator>chrisalexander</dc:creator>
      <dc:date>2020-08-12T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX expression - Token Literal Expected error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290937#M22175</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="252379" data-lia-user-login="chrisalexander" class="lia-mention lia-mention-user"&gt;chrisalexander&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use and instead of &amp;amp;&amp;amp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Query uses &lt;STRONG&gt;and&lt;/STRONG&gt; and &lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DAX uses &lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt; and&lt;STRONG&gt; ||&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 15:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290937#M22175</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-08-12T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX expression - Token Literal Expected error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290950#M22177</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215853" data-lia-user-login="camargos88" class="lia-mention lia-mention-user"&gt;camargos88&lt;/a&gt;&amp;nbsp;Thank you so much.&amp;nbsp; It worked!&amp;nbsp; Looks like an opportunity to do a little bit more reading up on DAX exprsessions and learning the syntax behind it.&amp;nbsp; Thank you again.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 15:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-Token-Literal-Expected-error/m-p/1290950#M22177</guid>
      <dc:creator>chrisalexander</dc:creator>
      <dc:date>2020-08-12T15:39:07Z</dc:date>
    </item>
  </channel>
</rss>

