<?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 concatenate Text in direct query mode in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957466#M42745</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I need help from expert about concenate text in direct query mode.&lt;BR /&gt;&lt;BR /&gt;I need to create a new column based on several conditions or if statements into new column. Here the illustration of the table that I have, I named it "staging Screening"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fever&lt;/TD&gt;&lt;TD&gt;SkinChanges&lt;/TD&gt;&lt;TD&gt;Lethargy&lt;/TD&gt;&lt;TD&gt;DryMounth&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;note for if statements:&lt;BR /&gt;If "fever"column more than 5, the result text will be "Fever more than 5 days"&lt;BR /&gt;if "skinchanges" is "is true, then result text will be "Rash on student skin"&lt;BR /&gt;if "lethargy" is "true", then text will be "Very sleepy"&lt;BR /&gt;if "drymounth" is "true", the text will be"Mouth very dry"&lt;BR /&gt;&lt;BR /&gt;I hope the result of new column below, if using case above will be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fever&lt;/TD&gt;&lt;TD&gt;SkinChanges&lt;/TD&gt;&lt;TD&gt;Lethargy&lt;/TD&gt;&lt;TD&gt;DryMounth&lt;/TD&gt;&lt;TD&gt;newcolumn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Fever more than 5 days,&amp;nbsp;Rash on student skin,&amp;nbsp;Mouth very dry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;Fever more than 5 days,&amp;nbsp;Rash on student skin,&amp;nbsp;Mouth very dry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;Very sleepy,Mouth very dry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;Rash on student skin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;Very sleepy&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Please also note that i am working with power query mode, I already try text combine function but not allowed if the statement more than 5.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also try with combine value function but there are delimiter if the result is blank: here the dax that I used and result :&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;any help from expert will be really appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 13:36:04 GMT</pubDate>
    <dc:creator>TaufikMaggangka</dc:creator>
    <dc:date>2021-07-14T13:36:04Z</dc:date>
    <item>
      <title>concatenate Text in direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957466#M42745</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I need help from expert about concenate text in direct query mode.&lt;BR /&gt;&lt;BR /&gt;I need to create a new column based on several conditions or if statements into new column. Here the illustration of the table that I have, I named it "staging Screening"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fever&lt;/TD&gt;&lt;TD&gt;SkinChanges&lt;/TD&gt;&lt;TD&gt;Lethargy&lt;/TD&gt;&lt;TD&gt;DryMounth&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;note for if statements:&lt;BR /&gt;If "fever"column more than 5, the result text will be "Fever more than 5 days"&lt;BR /&gt;if "skinchanges" is "is true, then result text will be "Rash on student skin"&lt;BR /&gt;if "lethargy" is "true", then text will be "Very sleepy"&lt;BR /&gt;if "drymounth" is "true", the text will be"Mouth very dry"&lt;BR /&gt;&lt;BR /&gt;I hope the result of new column below, if using case above will be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fever&lt;/TD&gt;&lt;TD&gt;SkinChanges&lt;/TD&gt;&lt;TD&gt;Lethargy&lt;/TD&gt;&lt;TD&gt;DryMounth&lt;/TD&gt;&lt;TD&gt;newcolumn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Fever more than 5 days,&amp;nbsp;Rash on student skin,&amp;nbsp;Mouth very dry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;Fever more than 5 days,&amp;nbsp;Rash on student skin,&amp;nbsp;Mouth very dry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;Very sleepy,Mouth very dry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;Rash on student skin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;true&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;Very sleepy&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Please also note that i am working with power query mode, I already try text combine function but not allowed if the statement more than 5.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also try with combine value function but there are delimiter if the result is blank: here the dax that I used and result :&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;any help from expert will be really appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 13:36:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957466#M42745</guid>
      <dc:creator>TaufikMaggangka</dc:creator>
      <dc:date>2021-07-14T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate Text in direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957650#M42750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312193" data-lia-user-login="TaufikMaggangka" class="lia-mention lia-mention-user"&gt;TaufikMaggangka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a column with below code:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Column = 
var fevercheck = IF('Table (8)'[Fever] &amp;gt; 5,"Fever more than 5 days",BLANK())
var skincheck = IF('Table (8)'[SkinChanges] = TRUE(),"Rash on student skin",BLANK())
var lethrgycheck = IF('Table (8)'[Lethargy] = TRUE(),"Very sleepy",BLANK())
var drymounthcheck = IF('Table (8)'[DryMounth] = TRUE(),"Mouth very dry",BLANK())
var listsymptom = {fevercheck,skincheck,lethrgycheck,drymounthcheck}
RETURN
  CONCATENATEX(
      FILTER(listsymptom,[Value]&amp;lt;&amp;gt;""),
      [Value],
      ","
  )&lt;/LI-CODE&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;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:28:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957650#M42750</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-07-14T14:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate Text in direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957794#M42754</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312802" data-lia-user-login="Samarth_18" class="lia-mention lia-mention-user"&gt;Samarth_18&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for trying to help.&amp;nbsp;&lt;BR /&gt;But in any reason "concatenatex" not working or cannot be found in "direct query mode". Please see my screenshoot below. I also read here :&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Report-Server/DAX-Function-CONCATENATEX-is-not-supported-on-PBIRS-DirectQuery/m-p/409398" target="_blank"&gt;https://community.powerbi.com/t5/Report-Server/DAX-Function-CONCATENATEX-is-not-supported-on-PBIRS-DirectQuery/m-p/409398&lt;/A&gt;&lt;BR /&gt;which explain that&amp;nbsp; "concatenatex" doesnt support in direct query mode.&lt;BR /&gt;&lt;BR /&gt;Your future support will be really appreciated&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312802" data-lia-user-login="Samarth_18" class="lia-mention lia-mention-user"&gt;Samarth_18&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:26:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1957794#M42754</guid>
      <dc:creator>TaufikMaggangka</dc:creator>
      <dc:date>2021-07-14T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate Text in direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1959398#M42807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312193" data-lia-user-login="TaufikMaggangka" class="lia-mention lia-mention-user"&gt;TaufikMaggangka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a custom column with below code in transform data window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;= let 
fevercheck = if [Fever] &amp;gt; 5 then "Fever more than 5 days" else null,
skincheck = if [SkinChanges] = true then "Rash on student skin" else null,
lethrgycheck = if[Lethargy] = true then "Very sleepy" else null,
drymounthcheck = if[DryMounth] = true then "Mouth very dry" else null,

symptomslist = Text.Combine({fevercheck,skincheck,lethrgycheck,drymounthcheck},",")

in symptomslist&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 08:50:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1959398#M42807</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-07-15T08:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate Text in direct query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1959461#M42808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312802" data-lia-user-login="Samarth_18" class="lia-mention lia-mention-user"&gt;Samarth_18&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you again trying to help,&lt;BR /&gt;&lt;BR /&gt;I have tried your suggestion but&amp;nbsp;&lt;SPAN&gt;This query contains transformations that can't be used for DirectQuery. Its why I try to add column or measure to fix this.&lt;BR /&gt;&lt;BR /&gt;Do you have any other suggestion to solve this ? I have try with new column but there delimiter show if the result is blank, Do you have any suggestion about this ? how to ingore blank in Combine value function. Please see atatched above to see my syntax.&lt;BR /&gt;&lt;BR /&gt;Your future help will be really appreciated, stress about this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 09:12:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/concatenate-Text-in-direct-query-mode/m-p/1959461#M42808</guid>
      <dc:creator>TaufikMaggangka</dc:creator>
      <dc:date>2021-07-15T09:12:05Z</dc:date>
    </item>
  </channel>
</rss>

