<?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 Push data with CSharp in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1190496#M24441</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on getting my data-pushed with c# and the power bi API, my issue is with datetime columns; My explanation, in my code, when I created the dataset I'm specificating the type of my data, if the column is string, I'm sending string, when is Datetime I send DateTime, in this part my process work perfect ( O at less is what I think it is). When I'm tring to push the data, my datetime format is "yyyy-MM-ddTHH:mm:ss.fffZ" and when execute the push work fine, but in my power bi desktop the column isn't marked as datetime and when I try to work with a datetime function is telling me that cannot convert value text to date, this is the message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="martinmatouy_0-1593476749222.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/302146i9E9ED8AA50A564C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="martinmatouy_0-1593476749222.png" alt="martinmatouy_0-1593476749222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming that my data isn't in the correct format in power bi dataset, what is driving me crazy.&lt;/P&gt;&lt;P&gt;If someone can give me the help I'll appreciate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 00:35:16 GMT</pubDate>
    <dc:creator>martinmatouy</dc:creator>
    <dc:date>2020-06-30T00:35:16Z</dc:date>
    <item>
      <title>Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1190496#M24441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on getting my data-pushed with c# and the power bi API, my issue is with datetime columns; My explanation, in my code, when I created the dataset I'm specificating the type of my data, if the column is string, I'm sending string, when is Datetime I send DateTime, in this part my process work perfect ( O at less is what I think it is). When I'm tring to push the data, my datetime format is "yyyy-MM-ddTHH:mm:ss.fffZ" and when execute the push work fine, but in my power bi desktop the column isn't marked as datetime and when I try to work with a datetime function is telling me that cannot convert value text to date, this is the message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="martinmatouy_0-1593476749222.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/302146i9E9ED8AA50A564C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="martinmatouy_0-1593476749222.png" alt="martinmatouy_0-1593476749222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming that my data isn't in the correct format in power bi dataset, what is driving me crazy.&lt;/P&gt;&lt;P&gt;If someone can give me the help I'll appreciate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 00:35:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1190496#M24441</guid>
      <dc:creator>martinmatouy</dc:creator>
      <dc:date>2020-06-30T00:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1190666#M24444</link>
      <description>&lt;P&gt;Power BI has a different type for that - it is called DateTimeZone. If it still doesn't work then you can replace the T by a space and remove the Z before converting to DateTime. (assuming that you want to keep your time as UTC)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtA1MNM1sgwxNLUyMLcyMtEzMDCIUoqNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type datetimezone}})
in
    #"Changed Type"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jun 2020 02:20:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1190666#M24444</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-30T02:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192388#M24455</link>
      <description>&lt;P&gt;Thanks, Ibendlin for your message, I tried removing the T between the date and the time and the Z at the end of my DateTime, but I still have the same message regarding the text type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing I forgot to tell is that my data in my c sharp process, from a SQL Server DB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't familiarize with the part of the code you tell me, can you explain a little more, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank again.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:27:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192388#M24455</guid>
      <dc:creator>martinmatouy</dc:creator>
      <dc:date>2020-06-30T13:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192411#M24456</link>
      <description>&lt;P&gt;Did you try my example?&amp;nbsp; Test it with one of your strings.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:37:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192411#M24456</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-30T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192444#M24457</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;lbendlin,&amp;nbsp;I don't familiarize with that code, where should I run?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192444#M24457</guid>
      <dc:creator>martinmatouy</dc:creator>
      <dc:date>2020-06-30T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192538#M24459</link>
      <description>&lt;P&gt;That is Power Query code. Run it in Excel or in Power BI Desktop.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:28:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1192538#M24459</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-30T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1193074#M24460</link>
      <description>&lt;P&gt;Thanks again&amp;nbsp;lbendlin, when I use my Desktop version, I'm unable to select an option, it looks like disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="martinmatouy_0-1593538337640.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/302901i7F8DD78DDA5887E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="martinmatouy_0-1593538337640.png" alt="martinmatouy_0-1593538337640.png" /&gt;&lt;/span&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;</description>
      <pubDate>Tue, 30 Jun 2020 17:34:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1193074#M24460</guid>
      <dc:creator>martinmatouy</dc:creator>
      <dc:date>2020-06-30T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1195582#M24498</link>
      <description>&lt;P&gt;Well, unfortunately, the issue was my CSharp code, I was sending the data type incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the change to the data set creation process with the correct data type (Datetime) and It's working. I'm fighting now with the&amp;nbsp;hierarchy of the dates fields because the streaming dataset isn't available but I have my original problem resolve.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you so much for the time.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 15:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1195582#M24498</guid>
      <dc:creator>martinmatouy</dc:creator>
      <dc:date>2020-07-01T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1218986#M24713</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same issue, and I think PushDataSets have severe limitations, Data heirachy being one of them. I was never able to build a Date heirachy on the fly, and ended up creating the actual Dates in C# code.&lt;/P&gt;&lt;P&gt;Crappy solution, but works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;phil&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 16:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1218986#M24713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-13T16:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Push data with CSharp</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1219090#M24716</link>
      <description>&lt;P&gt;Thanks, Phil for your time; I agree with you in the serious limitations in the push dataset. In my case, I created in the c# the four values (year, month, day, and quarter) but seams the powerbi read as a number and when I use it the order is by number no for month. I'm questioning if the push dataset is working for me.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 17:03:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Push-data-with-CSharp/m-p/1219090#M24716</guid>
      <dc:creator>martinmatouy</dc:creator>
      <dc:date>2020-07-13T17:03:59Z</dc:date>
    </item>
  </channel>
</rss>

