<?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: Convert numbers into text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203913#M19312</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an Power Query solution using custom column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;_char = {"A".."Z"},&lt;BR /&gt;_value = Number.FromText(Text.Start(Number.ToText([Column1]), 1)) - 1&lt;BR /&gt;in Text.Repeat(_char{_value}, Text.Length(Text.From([Column1])))&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;</description>
    <pubDate>Mon, 06 Jul 2020 13:52:18 GMT</pubDate>
    <dc:creator>camargos88</dc:creator>
    <dc:date>2020-07-06T13:52:18Z</dc:date>
    <item>
      <title>Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203576#M19303</link>
      <description>&lt;P&gt;Hi, I have a column with 4 different numbers, lets call them 1111, 2222, 3333, 4444. For a diagram, I want them to be named, e.g. for 1111, should be named AAAA, 2222 should be named BBBB etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to do it? Is it with a convert()? Couldn't figure it out yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 11:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203576#M19303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T11:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203603#M19304</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&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;Create a Calculated Column.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Column =&amp;nbsp;&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;'Table'[Column] = 1111 , "AAAA",&lt;/P&gt;&lt;P&gt;'Table'[Column] = 2222 , "BBBB",&lt;/P&gt;&lt;P&gt;'Table'[Column] = 3333 , "CCCC",&lt;/P&gt;&lt;P&gt;'Table'[Column] = 4444 , "DDDD"&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 11:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203603#M19304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203913#M19312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an Power Query solution using custom column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;_char = {"A".."Z"},&lt;BR /&gt;_value = Number.FromText(Text.Start(Number.ToText([Column1]), 1)) - 1&lt;BR /&gt;in Text.Repeat(_char{_value}, Text.Length(Text.From([Column1])))&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;</description>
      <pubDate>Mon, 06 Jul 2020 13:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1203913#M19312</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-07-06T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204186#M19319</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for that solution. It unfortunatley didn't worked out. Power Bi shows me the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;DAX comparisons do not support comparisons between text and integer values. You can use the VALUE function or the FORMAT function to convert one of the values.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But I think this is in general the right way to do it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 15:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204186#M19319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204203#M19321</link>
      <description>&lt;P&gt;Hi &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; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for that solution. It unfirtunatley also didn't worked out. Power Bi shows "error" in every row of the column.&lt;/P&gt;&lt;P&gt;As far as I understand your formula, I would say it is maybe not the right approach. But I'm not sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make it more clear:&lt;/P&gt;&lt;P&gt;I have a column with four different numbers, that are in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Column1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1111&lt;/P&gt;&lt;P&gt;1111&lt;/P&gt;&lt;P&gt;3333&lt;/P&gt;&lt;P&gt;2222&lt;/P&gt;&lt;P&gt;1111&lt;/P&gt;&lt;P&gt;4444&lt;/P&gt;&lt;P&gt;2222&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I want to give every specific number of that four numbers, the right name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like for example: 1111 is Steven, 2222 is Christoph, 3333 is Larry, 4444 is Magdalen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it should look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P&gt;1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Steven&lt;/P&gt;&lt;P&gt;1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Steven&lt;/P&gt;&lt;P&gt;3333 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; Larry&lt;/P&gt;&lt;P&gt;2222&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Christoph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 15:44:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204203#M19321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T15:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204214#M19322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the logic to give the names ?&lt;/P&gt;&lt;P&gt;If you have it mapped in another table, you can just merge both tables and use this column.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 15:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204214#M19322</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-07-06T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204219#M19323</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/a&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;What is the Data Type of 1111 ?? Is it Text or Integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls check and let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share a screen shot if your table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 15:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1204219#M19323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T15:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers into text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1205222#M19358</link>
      <description>&lt;P&gt;Thank you. Since I had just 4 names to merge with the numbers it was easy to make a seperate table and merge it with the other one.&lt;/P&gt;&lt;P&gt;I made it more complicated than needed.&lt;/P&gt;&lt;P&gt;Thanks for the solution &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; worked out perfect!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-numbers-into-text/m-p/1205222#M19358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-07T05:04:41Z</dc:date>
    </item>
  </channel>
</rss>

