<?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: Concat strings and indentation in Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255100#M120177</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518952" data-lia-user-login="barritown" class="lia-mention lia-mention-user"&gt;barritown&lt;/a&gt;!&lt;BR /&gt;First of all, thank you very much for your help. It's just what I had already implemented, with a slightly different formula but returning the same output.&lt;/P&gt;
&lt;P&gt;I realized from your answer that the problem is the font, but I have a mandatory font to use.&lt;/P&gt;
&lt;P&gt;Do you know if there is any resolution for this problem?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 10:29:30 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2023-05-26T10:29:30Z</dc:date>
    <item>
      <title>Concat strings and indentation in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3254671#M120156</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I need your help to solve a problem. I need to insert two concatenated fields, namely Description and Code, as rows in a Power BI matrix. I would like the Code to be properly aligned as if it were in a separate column from the Description, even though they are actually in the same column. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've tried different codes, some work in a table, but when dragged into the matrix, they appear misaligned. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any ideas? Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As-is:&lt;BR /&gt;&lt;/SPAN&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 07:07:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3254671#M120156</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2023-05-26T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Concat strings and indentation in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255065#M120173</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, you must use a monospace font (Courier New, for example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, you must switch off the "Word wrap" option in the "Row headers" setting of the Matrix visual (see this solution -&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Keep-spaces-in-column-fields-when-using-table-matrix/m-p/432210" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Keep-spaces-in-column-fields-when-using-table-matrix/m-p/432210&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then everything works with a calculated column like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And the same in plain text:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LIV_5 = 
VAR MinIdent = 1
VAR MaxLen = MAXX ( ALL ( data ), LEN ([Description] ))
VAR QtyExtraSpaces = MaxLen - LEN ( [Description] ) + MinIdent
RETURN [Description] &amp;amp; REPT (UNICHAR(32), QtyExtraSpaces ) &amp;amp; CONVERT ( [Code], STRING )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Best Regards, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Alexander&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@powerbi-vlog" target="_blank"&gt;My YouTube vlog in English&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@pbi-vlog" target="_blank"&gt;My YouTube vlog in Russian&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 09:59:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255065#M120173</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2023-05-26T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concat strings and indentation in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255100#M120177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518952" data-lia-user-login="barritown" class="lia-mention lia-mention-user"&gt;barritown&lt;/a&gt;!&lt;BR /&gt;First of all, thank you very much for your help. It's just what I had already implemented, with a slightly different formula but returning the same output.&lt;/P&gt;
&lt;P&gt;I realized from your answer that the problem is the font, but I have a mandatory font to use.&lt;/P&gt;
&lt;P&gt;Do you know if there is any resolution for this problem?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 10:29:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255100#M120177</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2023-05-26T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Concat strings and indentation in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255395#M120216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately, without a monospace font the problem seems to me unsolvable. I hoped to solve it with the help of the tabulation symbol instead of extra spaces but it doesn't work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 12:49:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concat-strings-and-indentation-in-Matrix/m-p/3255395#M120216</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2023-05-26T12:49:31Z</dc:date>
    </item>
  </channel>
</rss>

