<?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: Insert a custom row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-custom-row/m-p/3217201#M117480</link>
    <description>&lt;P&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMs3NVYrViVYyh9KGBnCGtgKMaQpnaENZRgZwBlzIFM6ACRkbwBlwIVM4AyZkYgBnwISci/LL88Asp8zikqJ8MDMgJ7EkFcwKLknMS0ksSgFzfBKL0oHCsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),&lt;BR /&gt;#"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "Sizes"}}),&lt;BR /&gt;#"Added Index" = Table.AddIndexColumn(#"Renamed Columns", "Index", 0, 1, Int64.Type),&lt;BR /&gt;Custom1 = Table.TransformColumns(#"Added Index",{"Sizes",each let a=Text.Split(_,"+") in a{0}&amp;amp;Text.Trim(a{1}?)&amp;amp;"+"??_}),&lt;BR /&gt;Custom2 = Custom1 &amp;amp;#table(Table.ColumnNames(Custom1),{{"export",Table.RowCount(Custom1)}})&lt;BR /&gt;in&lt;BR /&gt;Custom2&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 07:18:12 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2023-05-03T07:18:12Z</dc:date>
    <item>
      <title>Insert a custom row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-custom-row/m-p/3217169#M117479</link>
      <description>&lt;P&gt;Hi, i have the below syntax, and want to add a row to the bottom that contains&amp;nbsp;&lt;/P&gt;&lt;P&gt;" size = export, Index = 21"&lt;/P&gt;&lt;P&gt;My table is a 2X 21 currently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&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("i45WMs3NVYrViVYyh9KGBnCGtgKMaQpnaENZRgZwBlzIFM6ACRkbwBlwIVM4AyZkYgBnwISci/LL88Asp8zikqJ8MDMgJ7EkFcwKLknMS0ksSgFzfBKL0oHCsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),&lt;BR /&gt;#"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "Sizes"}}),&lt;BR /&gt;#"Added Index" = Table.AddIndexColumn(#"Renamed Columns", "Index", 0, 1, Int64.Type),&lt;BR /&gt;#"Replaced Value" = Table.ReplaceValue(#"Added Index","10+ mm","10mm+",Replacer.ReplaceText,{"Sizes"}),&lt;BR /&gt;#"Replaced Value1" = Table.ReplaceValue(#"Replaced Value","15+mm","15mm+",Replacer.ReplaceText,{"Sizes"}),&lt;BR /&gt;#"Replaced Value2" = Table.ReplaceValue(#"Replaced Value1","25+mm","25mm+",Replacer.ReplaceText,{"Sizes"}),&lt;BR /&gt;#"Replaced Value3" = Table.ReplaceValue(#"Replaced Value2","30+mm","30mm+",Replacer.ReplaceText,{"Sizes"}),&lt;BR /&gt;#"Replaced Value4" = Table.ReplaceValue(#"Replaced Value3","35+mm","35mm+",Replacer.ReplaceText,{"Sizes"}),&lt;BR /&gt;#"Replaced Value5" = Table.ReplaceValue(#"Replaced Value4","40+mm","40mm+",Replacer.ReplaceText,{"Sizes"}),&lt;BR /&gt;#"Replaced Value6" = Table.ReplaceValue(#"Replaced Value5","20+mm","20mm+",Replacer.ReplaceText,{"Sizes"})&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;#"Replaced Value6"&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 07:01:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-custom-row/m-p/3217169#M117479</guid>
      <dc:creator>Stacey_Tucker</dc:creator>
      <dc:date>2023-05-03T07:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a custom row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-custom-row/m-p/3217201#M117480</link>
      <description>&lt;P&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMs3NVYrViVYyh9KGBnCGtgKMaQpnaENZRgZwBlzIFM6ACRkbwBlwIVM4AyZkYgBnwISci/LL88Asp8zikqJ8MDMgJ7EkFcwKLknMS0ksSgFzfBKL0oHCsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),&lt;BR /&gt;#"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "Sizes"}}),&lt;BR /&gt;#"Added Index" = Table.AddIndexColumn(#"Renamed Columns", "Index", 0, 1, Int64.Type),&lt;BR /&gt;Custom1 = Table.TransformColumns(#"Added Index",{"Sizes",each let a=Text.Split(_,"+") in a{0}&amp;amp;Text.Trim(a{1}?)&amp;amp;"+"??_}),&lt;BR /&gt;Custom2 = Custom1 &amp;amp;#table(Table.ColumnNames(Custom1),{{"export",Table.RowCount(Custom1)}})&lt;BR /&gt;in&lt;BR /&gt;Custom2&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 07:18:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-custom-row/m-p/3217201#M117480</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-05-03T07:18:12Z</dc:date>
    </item>
  </channel>
</rss>

