<?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: Question regarding date/time table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Question-regarding-date-time-table/m-p/3379413#M127304</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Leave the original column in place and add a new column that truncates the time off? Then you make the relationship on the non-time data column but you still have the original column that includes the data and time.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 16:51:12 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-08-14T16:51:12Z</dc:date>
    <item>
      <title>Question regarding date/time table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Question-regarding-date-time-table/m-p/3379306#M127299</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to Power BI and I've encounterd a problem related to time/date convertion and relationship. I'm trying to make a calendar-table "dimKalender" for my sales-table "factSalg" with the relationship *:1. When I link the two different in the model view with "date" it appears as a 1:1 relationship. I have formated both date-related data into date/time, both in PowerQuery and in data view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "dimKalender" is made with the following DAX-function:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dimKalender = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Calendar&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;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;&lt;P&gt;I went into PowerQuery and removed the "time"-data on the "factSalg" which made the *:1 connection possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how I can fix it so that the "time" is possible to keep, while I can sitll make the *:1 connection between the tables?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:28:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Question-regarding-date-time-table/m-p/3379306#M127299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-14T15:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding date/time table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Question-regarding-date-time-table/m-p/3379413#M127304</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Leave the original column in place and add a new column that truncates the time off? Then you make the relationship on the non-time data column but you still have the original column that includes the data and time.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 16:51:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Question-regarding-date-time-table/m-p/3379413#M127304</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-08-14T16:51:12Z</dc:date>
    </item>
  </channel>
</rss>

