<?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: Create table using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/731428#M1776</link>
    <description>&lt;P&gt;I have found a way to generate the time column using some altenative, its just the column Period is making problems now as i am not able to addcolumn with text value in Dax. Please guide me to do so, in case not complete solution&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2019 04:23:08 GMT</pubDate>
    <dc:creator>PSdhillon</dc:creator>
    <dc:date>2019-07-04T04:23:08Z</dc:date>
    <item>
      <title>Create table using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/730771#M1756</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to DAX, need small help to create table with two static column with value 1D &amp;amp; 1 in Period &amp;amp; Sort column. Whereas, The date will have hourly rows for today'S DATE except 00 hours. Here is the screenshot, what is required&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please help/guide me to get this. TIA&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:24:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/730771#M1756</guid>
      <dc:creator>PSdhillon</dc:creator>
      <dc:date>2019-07-03T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create table using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/731428#M1776</link>
      <description>&lt;P&gt;I have found a way to generate the time column using some altenative, its just the column Period is making problems now as i am not able to addcolumn with text value in Dax. Please guide me to do so, in case not complete solution&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 04:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/731428#M1776</guid>
      <dc:creator>PSdhillon</dc:creator>
      <dc:date>2019-07-04T04:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create table using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/731895#M1788</link>
      <description>&lt;P&gt;Here is how i solved the problem, Thought to put it here, so that someone may use code specially beginers like me.&lt;/P&gt;&lt;PRE&gt;let
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Source = List.Dates(DateTime.Date(DateTime.LocalNow()), 1, #duration(-1, 0, 0, 0)),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date"}}),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Added Custom" = Table.AddColumn(#"Renamed Columns", "Time", each List.Times(#time(1, 0, 0), 23, #duration(0, 1, 0, 0))),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Expanded Time" = Table.ExpandListColumn(#"Added Custom", "Time"),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Changed Type" = Table.TransformColumnTypes(#"Expanded Time",{{"Time", type time}, {"Date", type date}}),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Added Custom1" = Table.AddColumn(#"Changed Type", "DateTime", each [Date]&amp;amp;[Time]),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom1",{{"DateTime", type datetime}}),
    #"Renamed Columns1" = Table.RenameColumns(#"Changed Type1",{{"Date", "Date0"}, {"DateTime", "Date"}}),
    #"Inserted Literal" = Table.AddColumn(#"Renamed Columns1", "Period", each "1D", type text),
    #"Inserted First Characters" = Table.AddColumn(#"Inserted Literal", "First Characters", each Text.Start([Period], 1), type text),
    #"Renamed Columns2" = Table.RenameColumns(#"Inserted First Characters",{{"First Characters", "Sort"}}),
    #"Removed Columns" = Table.RemoveColumns(#"Renamed Columns2",{"Time", "Date0"})
in
    #"Removed Columns"&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jul 2019 13:14:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-table-using-DAX/m-p/731895#M1788</guid>
      <dc:creator>PSdhillon</dc:creator>
      <dc:date>2019-07-04T13:14:59Z</dc:date>
    </item>
  </channel>
</rss>

