<?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: Concatenate if field if not null? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1789801#M37663</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;[Const Year-Quarter] =
var Year_ = Properties[Const-Y]
var Quarter_ = Properties[Const-Q]
RETURN
    if(
        NOT ISBLANK( Year_ ),
        Year_ &amp;amp; "-Q" &amp;amp; Quarter_
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 17:47:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-16T17:47:46Z</dc:date>
    <item>
      <title>Concatenate if field if not null?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1787906#M37607</link>
      <description>&lt;P&gt;I have a new column created using this formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Const Year-Quarter = CONCATENATE('Properties'[Const-Y]&amp;amp;"-", "Q"&amp;amp;'Properties'[Const-Q])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would like to update this formula to concatenate If Const-Y is &lt;STRONG&gt;&lt;EM&gt;not&lt;/EM&gt; &lt;/STRONG&gt;null. If Const-Y is null, then return blank.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lil help? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Apr 2021 22:52:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1787906#M37607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-15T22:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate if field if not null?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1787916#M37609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can pretty easily have an IF statement within your CONCATENATE like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Const&amp;nbsp;Year-Quarter&amp;nbsp;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;'Properties'[Const-Y]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;'Properties'[Const-Y]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="StringLiteral"&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="StringLiteral"&gt;"Q"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;'Properties'[Const-Q]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 23:00:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1787916#M37609</guid>
      <dc:creator>bongmw</dc:creator>
      <dc:date>2021-04-15T23:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate if field if not null?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1789801#M37663</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;[Const Year-Quarter] =
var Year_ = Properties[Const-Y]
var Quarter_ = Properties[Const-Q]
RETURN
    if(
        NOT ISBLANK( Year_ ),
        Year_ &amp;amp; "-Q" &amp;amp; Quarter_
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 17:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-if-field-if-not-null/m-p/1789801#M37663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-16T17:47:46Z</dc:date>
    </item>
  </channel>
</rss>

