<?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 Change DateTime to Date in API setup in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Change-DateTime-to-Date-in-API-setup/m-p/3685702#M49440</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build a semantic model that currently exists as an Excel Spreadsheet using a mixture of SQL Data pulled from some retail/booking software and some tabs that rely on manual data entry (basically I look after 6 ships and every day each captain will manually add how many passengers they had on board).&amp;nbsp; The SQL stuff is all fine but the Excel spreadsheet used formulas dependent&amp;nbsp; on these manually entered numbers, so long story short the model needs a way of being updated by the end user in as basic a way as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get around this I designed a basic MS Form to capture the data, then built a streaming dataset using API that takes the data entered and creates a table in Power BI which I can then join to the SQL-Driven tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when setting up the streaming bits the date field (which I need as a primary key) only has an option of DateTime, not Date, and the SQL Date fields are all just dates.&amp;nbsp; I can't edit the API data since it's live and everything is greyed out, the API data is not editable and while I could try and change the datatype in the SQL tables it seems a bit cart-before-horse.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can get just the date to go into Power BI rather than DateTime?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BUC_0-1707308649066.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1038963iEFC91ED80B3D4F33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BUC_0-1707308649066.png" alt="BUC_0-1707308649066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 12:24:16 GMT</pubDate>
    <dc:creator>BUC</dc:creator>
    <dc:date>2024-02-07T12:24:16Z</dc:date>
    <item>
      <title>Change DateTime to Date in API setup</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Change-DateTime-to-Date-in-API-setup/m-p/3685702#M49440</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build a semantic model that currently exists as an Excel Spreadsheet using a mixture of SQL Data pulled from some retail/booking software and some tabs that rely on manual data entry (basically I look after 6 ships and every day each captain will manually add how many passengers they had on board).&amp;nbsp; The SQL stuff is all fine but the Excel spreadsheet used formulas dependent&amp;nbsp; on these manually entered numbers, so long story short the model needs a way of being updated by the end user in as basic a way as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get around this I designed a basic MS Form to capture the data, then built a streaming dataset using API that takes the data entered and creates a table in Power BI which I can then join to the SQL-Driven tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when setting up the streaming bits the date field (which I need as a primary key) only has an option of DateTime, not Date, and the SQL Date fields are all just dates.&amp;nbsp; I can't edit the API data since it's live and everything is greyed out, the API data is not editable and while I could try and change the datatype in the SQL tables it seems a bit cart-before-horse.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can get just the date to go into Power BI rather than DateTime?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BUC_0-1707308649066.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1038963iEFC91ED80B3D4F33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BUC_0-1707308649066.png" alt="BUC_0-1707308649066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 12:24:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Change-DateTime-to-Date-in-API-setup/m-p/3685702#M49440</guid>
      <dc:creator>BUC</dc:creator>
      <dc:date>2024-02-07T12:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change DateTime to Date in API setup</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Change-DateTime-to-Date-in-API-setup/m-p/3687286#M49451</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/676706"&gt;@BUC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description, it&lt;SPAN&gt;&amp;nbsp;sounds like you are trying to change the DateTime field to a Date field in your API setup. And you will create relationship between sql table and this api table base on date type field. You can create a a calculated column as below to get it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = FORMAT([DateTimeColumn], "MM/DD/YYYY")&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 03:36:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Change-DateTime-to-Date-in-API-setup/m-p/3687286#M49451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-08T03:36:34Z</dc:date>
    </item>
  </channel>
</rss>

