<?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 - ConcatenateX Function - Check if there's value first and/or value is null and/or blank... in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/253083#M7806</link>
    <description>&lt;P&gt;I have the following code that works (VAR X = CONCATENATEX(Table, Table[Column] &amp;amp; " - " &amp;amp; Table[Column], "; ", [Table Column], DESC) &amp;nbsp; ---however sometimes my result looks like this:&lt;/P&gt;&lt;P&gt;Ex. 1: Client ABC - 0; -; or&lt;/P&gt;&lt;P&gt;Ex. 2: -;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it tries to concatenate data from one column (description) based off of the id from another column (id) - but while it matches on the id the description column is blank... So I get the ugly -; without anything following it.. So how can I check first whether there's an actual value before attempting to concatenate.. I'm new to DAX so don't know the syntax at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I simply want to check if current row&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Table[Column] is blank, null, etc. before doing this step:&amp;nbsp;Table[Column] &amp;amp; " - " &amp;amp; Table[Column], "; ", [Table Column].... Need syntax...&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 16:48:29 GMT</pubDate>
    <dc:creator>arelf27</dc:creator>
    <dc:date>2017-09-15T16:48:29Z</dc:date>
    <item>
      <title>DAX - ConcatenateX Function - Check if there's value first and/or value is null and/or blank...</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/253083#M7806</link>
      <description>&lt;P&gt;I have the following code that works (VAR X = CONCATENATEX(Table, Table[Column] &amp;amp; " - " &amp;amp; Table[Column], "; ", [Table Column], DESC) &amp;nbsp; ---however sometimes my result looks like this:&lt;/P&gt;&lt;P&gt;Ex. 1: Client ABC - 0; -; or&lt;/P&gt;&lt;P&gt;Ex. 2: -;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it tries to concatenate data from one column (description) based off of the id from another column (id) - but while it matches on the id the description column is blank... So I get the ugly -; without anything following it.. So how can I check first whether there's an actual value before attempting to concatenate.. I'm new to DAX so don't know the syntax at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I simply want to check if current row&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Table[Column] is blank, null, etc. before doing this step:&amp;nbsp;Table[Column] &amp;amp; " - " &amp;amp; Table[Column], "; ", [Table Column].... Need syntax...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 16:48:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/253083#M7806</guid>
      <dc:creator>arelf27</dc:creator>
      <dc:date>2017-09-15T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - ConcatenateX Function - Check if there's value first and/or value is null and/or blank...</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/253524#M7816</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14986"&gt;@arelf27&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have the following code that works (VAR X = CONCATENATEX(Table, Table[Column] &amp;amp; " - " &amp;amp; Table[Column], "; ", [Table Column], DESC) &amp;nbsp; ---however sometimes my result looks like this:&lt;/P&gt;
&lt;P&gt;Ex. 1: Client ABC - 0; -; or&lt;/P&gt;
&lt;P&gt;Ex. 2: -;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically it tries to concatenate data from one column (description) based off of the id from another column (id) - but while it matches on the id the description column is blank... So I get the ugly -; without anything following it.. So how can I check first whether there's an actual value before attempting to concatenate.. I'm new to DAX so don't know the syntax at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I simply want to check if current row&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Table[Column] is blank, null, etc. before doing this step:&amp;nbsp;Table[Column] &amp;amp; " - " &amp;amp; Table[Column], "; ", [Table Column].... Need syntax...&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14986"&gt;@arelf27&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Try to apply a filter to the table.&lt;/P&gt;
&lt;PRE&gt;New_Measure =
CONCATENATEX (
    FILTER ( 'Table', 'Table'[description] &amp;lt;&amp;gt; BLANK () &amp;amp;&amp;amp; 'Table'[id] &amp;lt;&amp;gt; BLANK () ),
    'Table'[description] &amp;amp; "-"
        &amp;amp; 'Table'[id],
    ";",
    'Table'[description], ASC
)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/60596i680776FB91482C34/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 02:07:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/253524#M7816</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-09-18T02:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - ConcatenateX Function - Check if there's value first and/or value is null and/or blank...</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/258692#M7983</link>
      <description>&lt;P&gt;Thanks using Filter did the trick!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:55:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/258692#M7983</guid>
      <dc:creator>arelf27</dc:creator>
      <dc:date>2017-09-25T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - ConcatenateX Function - Check if there's value first and/or value is null and/or blank...</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/3126305#M41690</link>
      <description>&lt;P&gt;Thanks, this is exactly what I needed.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 17:00:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-ConcatenateX-Function-Check-if-there-s-value-first-and-or/m-p/3126305#M41690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-12T17:00:26Z</dc:date>
    </item>
  </channel>
</rss>

