<?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 24 HR time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58421#M35</link>
    <description>&lt;P&gt;Is it still M or DAX?&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2016 20:19:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-13T20:19:37Z</dc:date>
    <item>
      <title>Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58302#M27</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column of time data in 24 Hr time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time&lt;/P&gt;&lt;P&gt;625&lt;/P&gt;&lt;P&gt;844&lt;/P&gt;&lt;P&gt;1241&lt;/P&gt;&lt;P&gt;1556&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where 625 is 06:25 AM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I convert this into a usable form for PowerBI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 17:37:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58302#M27</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-13T17:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58304#M29</link>
      <description>&lt;PRE&gt;Column = CONCATENATE(CONCATENATE(LEFT([Time],LEN([Time])-2),":"),RIGHT([Time],2))&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Aug 2016 02:11:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58304#M29</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-13T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58393#M31</link>
      <description>&lt;P&gt;I received the following message: Expression error: The name 'CONCATENATE' wasn't recognized. Make sure it's spelled correctly.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 16:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58393#M31</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-13T16:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58399#M32</link>
      <description>&lt;P&gt;That would be because you were trying to enter a DAX formula into the&amp;nbsp;Query Editor, which uses "M". Import your data and then in the Data tab, go to&amp;nbsp;Modeling in the ribbon and "New&amp;nbsp;Column". I'll see if I can post the equivalent M formula, but please note that you are posting to a forum on DAX Tips and Tricks, not Power Query "M" Tips and Tricks.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 17:01:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58399#M32</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-13T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58400#M33</link>
      <description>&lt;P&gt;M code version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;= Text.Middle(Text.From([Time]),0,Text.Length(Text.From([Time])) - 2) &amp;amp; ":" &amp;amp; Text.Middle(Text.From([Time]),Text.Length(Text.From([Time]))-2,2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This assumes that your original data is a Number, hence the Text.From functions. If you have converted it to Text, you don't need those although the formula as presented will work with either Text or Number as the original data type for [Time] column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 17:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58400#M33</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-13T17:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58405#M34</link>
      <description>&lt;P&gt;I received the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax for '.' is incorrect. (DAX(Text.Middle(Text.From([ACTUAL_TIME]),0,Text.Length(Text.From([ACTUAL_TIME])) - 2) &amp;amp; ":" &amp;amp; Text.Middle(Text.From([ACTUAL_TIME]),Text.Length(Text.From([ACTUAL_TIME]))-2,2))).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 17:39:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58405#M34</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-13T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58421#M35</link>
      <description>&lt;P&gt;Is it still M or DAX?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 20:19:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58421#M35</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-13T20:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58431#M36</link>
      <description>&lt;P&gt;The first formula I supplied is DAX. That is the one that starts with "Column =". You use that version after you have run your query and are out of the Query Editor window and in Power BI Desktop. You go to the Data tab (middle icon on the left) and go to "Modeling" and then "New Column". That is where you would use the FIRST formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SECOND formula is when you are in the Query Editor window and go to "Add Column" in the ribbon and then New Column. You seem to be using the DAX query when you should be using the M query and using the M query when you should be using the DAX query.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 03:01:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58431#M36</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-14T03:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58433#M37</link>
      <description>&lt;P&gt;For the first I receive the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An argument of function 'LEFT' has the wrong data type or has an invalid value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the difference beteen DAX and M?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 04:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58433#M37</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-14T04:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58472#M38</link>
      <description>&lt;P&gt;What is the data type of your "Time" column? Is your Time column called "Time"? I tested with the Time column being Whole Number and Text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The difference between DAX and M are that they are two completely different languages. DAX is used with PowerPivot (the in-memory data model that Power BI uses). M is used with Power Query, the extract, transform and load (ETL) system that Power BI uses.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 15:28:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58472#M38</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-14T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58479#M39</link>
      <description>&lt;P&gt;Whole Number for both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 17:39:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58479#M39</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-14T17:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58495#M40</link>
      <description>&lt;P&gt;Try switch [ACTUAL_TIME] to Text, it is the ?Data Type" drop down. Weird. If that doesn't work, copy and paste your formula into a response so that I can copy and paste it exactly and recreate this.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 23:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58495#M40</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-14T23:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58496#M41</link>
      <description>&lt;P&gt;I'll worry about it later. You're second query worked so I'll just work off that. Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 23:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/58496#M41</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-14T23:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/61516#M45</link>
      <description>&lt;P&gt;Maybe you want to use something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col =&amp;nbsp;REPLACE([Hora],IF(LEN([Hora])=3,2,3),0,":")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:smileywink:&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 22:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/61516#M45</guid>
      <dc:creator>diego_salinas</dc:creator>
      <dc:date>2016-08-23T22:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert 24 HR time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/61517#M46</link>
      <description>&lt;P&gt;Maybe you want to use something shorter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col&amp;nbsp;= REPLACE([Hora],IF(LEN([Hora])=3,2,3),0,":")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:smileywink:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 22:10:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-24-HR-time/m-p/61517#M46</guid>
      <dc:creator>diego_salinas</dc:creator>
      <dc:date>2016-08-23T22:10:52Z</dc:date>
    </item>
  </channel>
</rss>

