<?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: Specific formatting with DAX or M in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268286#M55113</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;, OP specified that the numbers come in integer form, which doesn't have an inherent dot formatting like that. I think they want to insert dots into a raw integer rather than remove them from a text string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280591" data-lia-user-login="MarcoFogale" class="lia-mention lia-mention-user"&gt;MarcoFogale&lt;/a&gt;&amp;nbsp;Please correct me if I have misunderstood.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 23:28:16 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2022-01-05T23:28:16Z</dc:date>
    <item>
      <title>Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268185#M55101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a series of articles numbers that come from the database as an integer. The users are now used to data exported in Excel where these numbers appears with a particular format, for exemple:&amp;nbsp; 1234.567.89.11&lt;/P&gt;&lt;P&gt;Where the number is smaller, it takes only the firsts dots - exemple: 1.22.33 or 12.234.56.78&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to show them these numbers formatted this way.&lt;/P&gt;&lt;P&gt;How could I acheive it? I imagine I could do it with a complicated DAX formula, but I was wondering if there's another workaround. I haven't figured out yet how to make it with custom formatting string...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268185#M55101</guid>
      <dc:creator>MarcoFogale</dc:creator>
      <dc:date>2022-01-05T21:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268215#M55103</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I believe the best way to do this is in powerquery. To do this you can do the following steps:&lt;BR /&gt;&lt;BR /&gt;1. Split column with multiple comma values by delimiter. Select the right most comma as the splitpoint&lt;/P&gt;&lt;P&gt;2. Remove the commas from the left most column&lt;/P&gt;&lt;P&gt;3. Merge the two columns into one&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Format data as decimal number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtQzNDLSMzXSMzNTitWJVjLRMzM31zM11TM3V4qNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Value = _t]),&lt;BR /&gt;#"Split Column by Delimiter" = Table.SplitColumn(Source, "Value", Splitter.SplitTextByEachDelimiter({"."}, QuoteStyle.Csv, true), {"Value.1", "Value.2"}),&lt;BR /&gt;#"Replaced Value" = Table.ReplaceValue(#"Split Column by Delimiter",".","",Replacer.ReplaceText,{"Value.1"}),&lt;BR /&gt;#"Merged Columns" = Table.CombineColumns(#"Replaced Value",{"Value.1", "Value.2"},Combiner.CombineTextByDelimiter(",", QuoteStyle.None),"Merged"),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(#"Merged Columns",{{"Merged", type number}})&lt;BR /&gt;in&lt;BR /&gt;#"Changed Type"&lt;BR /&gt;&lt;STRONG&gt;End result:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:14:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268215#M55103</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-05T22:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268230#M55106</link>
      <description>&lt;P&gt;If you can define the formatting rules, then it's possible in either M or DAX. Which is more convenient depends on the specific rules but M has a richer set of functions for manipulating strings and lists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not pretty but here's an example of a custom column for one possible set of rules:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;let
    T = Number.ToText([Column1]),
    L = Text.Length(T),
    Result = if L &amp;gt; 7 then Text.Insert(Text.Insert(Text.Insert(T, L-2, "."), L-4, "."), L-7, ".")
        else if L &amp;gt; 4 then Text.Insert(Text.Insert(T, L-2, "."), L-4, ".")
        else if L &amp;gt; 2 then Text.Insert(T, L-2, ".")
        else T
in
    Result&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:27:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268230#M55106</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-05T22:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268279#M55112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280591" data-lia-user-login="MarcoFogale" class="lia-mention lia-mention-user"&gt;MarcoFogale&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure I understood your question correctly or not (can you add a result), but if you want to remove dot from those article numbers&amp;nbsp;with DAX, try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;New Format = SUBSTITUTE(&lt;/STRONG&gt;[article number],".",""&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;output:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&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;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jan 2022 23:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268279#M55112</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-05T23:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268286#M55113</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;, OP specified that the numbers come in integer form, which doesn't have an inherent dot formatting like that. I think they want to insert dots into a raw integer rather than remove them from a text string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280591" data-lia-user-login="MarcoFogale" class="lia-mention lia-mention-user"&gt;MarcoFogale&lt;/a&gt;&amp;nbsp;Please correct me if I have misunderstood.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 23:28:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268286#M55113</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-05T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268321#M55115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for letting me know, it makes sense now for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="280591" data-lia-user-login="MarcoFogale" class="lia-mention lia-mention-user"&gt;MarcoFogale&lt;/a&gt;&amp;nbsp; if you need DAX try this code to add a new calculated column:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;New Format = 
Var _L = len('Table (2)'[article number])
Var _A = RIGHT('Table (2)'[article number],2)
Var _B = RIGHT(left('Table (2)'[article number],if(_L-2&amp;lt;=0,0,_L-2)),2)
Var _C = RIGHT(LEFT('Table (2)'[article number],if(_L-4&amp;lt;=0,0,_L-4)),3)
Var _D = RIGHT(LEFT('Table (2)'[article number],if(_L-7&amp;lt;=0,0,_L-7)),4)
Var _G = _D &amp;amp; "." &amp;amp; _C &amp;amp; "." &amp;amp; _B &amp;amp; "." &amp;amp; _A
Var _H = if(left(_G,1)=".",right(_G,len(_G)-1),_G)
return
_H&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&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;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 23:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268321#M55115</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-05T23:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Specific formatting with DAX or M</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268744#M55133</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;that's correct.&lt;/P&gt;&lt;P&gt;For exemple:&lt;/P&gt;&lt;P&gt;input&amp;nbsp; (whole number) -&amp;gt; 2411000012312&lt;/P&gt;&lt;P&gt;expected output (text) -&amp;gt; 2411.0000.123.12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if instead of a complicated DAX formula there was a way to obtain that with custom formatting strings, for example ####.####.###.## something like this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-formatting-with-DAX-or-M/m-p/2268744#M55133</guid>
      <dc:creator>MarcoFogale</dc:creator>
      <dc:date>2022-01-06T06:06:41Z</dc:date>
    </item>
  </channel>
</rss>

