<?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: Date time filter issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281766#M33870</link>
    <description>&lt;P&gt;Hi Ahsan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the dates would need to be exactly the same for the filtering to work. However this is not the best way to solve this problem. The best solution would be to create a Date table (see &lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/model-date-tables" target="_blank"&gt;Create date tables in Power BI Desktop - Power BI | Microsoft Docs&lt;/A&gt;) then use this to filter both tables. to do this you would need the split your DateTime column into two separate columns, one for date and one for time. you then create a relationship from the date table to each of the new date columns in each of your tables.&lt;/P&gt;&lt;P&gt;~You can do the same thing for time if you need to analyse by time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 14:12:26 GMT</pubDate>
    <dc:creator>MikeJohnsonZA</dc:creator>
    <dc:date>2022-01-13T14:12:26Z</dc:date>
    <item>
      <title>Date time filter issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281472#M33866</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first question in this community. I hope i will get solution. Before i have to write my question, i want to say that this community is quite good and very supportive. I got a lot of solutions during my tasks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;I have two data sets from two different sources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data set 1 contains the following information:&lt;/P&gt;&lt;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t;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;1586,81&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;3,97&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;abc&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;22.12.2021 05:10:00&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;1586,36&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;3,79&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;def&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;22.12.2021 05:15:00&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;1584,69&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;4,08&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;EM&gt;def&lt;/EM&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a relationship bewteen these two data sets based on date time column and TT nr. column. But its not working. If i filter data set 1_ID number then no changing is happening at data set 2_Vi_cons &amp;amp; WW_1 columns. Sum of data set 2 is always giving the total sum. Its independant from ID nr. But Data set1_TT nr filter is working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to find the solution. May be am doing something wrong or is it necessary to be the same date time in both data sets?&lt;/P&gt;&lt;P&gt;Your support will really help me to understand the issue.&lt;/P&gt;&lt;P&gt;I hope i explain it correctly, if not then please let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;ahsan&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281472#M33866</guid>
      <dc:creator>Alia2022</dc:creator>
      <dc:date>2022-01-13T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date time filter issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281766#M33870</link>
      <description>&lt;P&gt;Hi Ahsan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the dates would need to be exactly the same for the filtering to work. However this is not the best way to solve this problem. The best solution would be to create a Date table (see &lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/model-date-tables" target="_blank"&gt;Create date tables in Power BI Desktop - Power BI | Microsoft Docs&lt;/A&gt;) then use this to filter both tables. to do this you would need the split your DateTime column into two separate columns, one for date and one for time. you then create a relationship from the date table to each of the new date columns in each of your tables.&lt;/P&gt;&lt;P&gt;~You can do the same thing for time if you need to analyse by time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281766#M33870</guid>
      <dc:creator>MikeJohnsonZA</dc:creator>
      <dc:date>2022-01-13T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date time filter issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281979#M33872</link>
      <description>&lt;P&gt;Hi Mike,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I tried it in the way as you explained but still not full working. Its better than before but not getting the correct data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Ahsan&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:39:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2281979#M33872</guid>
      <dc:creator>Alia2022</dc:creator>
      <dc:date>2022-01-13T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date time filter issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2286392#M33908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/350941"&gt;@Alia2022&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I know you create relationships between Date/time columns between two tables. Then Vi_cons and WW_1 will only show total sum. However&amp;nbsp;&lt;SPAN&gt;Data set1_TT nr filter is working.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;SPAN&gt;MikeJohnsonZA mentioned before, we need two date/time be the same then Power BI will filter correctly. Do you want to get sum of&amp;nbsp;Vi_cons and WW_1 in "Data Set2" based on Date filter and&amp;nbsp;_TT nr filter?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Add only Date columns in two tables, build relationships between only date columns and create the sum by measure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here I build an active relationship between [Only Date] columns and an inactive relationship between [TT nr].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 665px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/656897i85C029330F273FAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Measure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_Vicons = CALCULATE(SUM('Data Set 2'[Vi_cons.]),USERELATIONSHIP('Data set 1'[TT nr],'Data Set 2'[TT nr]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;M_WW_1 = CALCULATE(SUM('Data Set 2'[WW_1]),USERELATIONSHIP('Data set 1'[TT nr],'Data Set 2'[TT nr]))&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 954px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/656898iBF740A31413665DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can download my sample to learn more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2286392#M33908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-17T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date time filter issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2288294#M33925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Rico Zhou,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the hint. Now, its looking good. I tried it and it's working good.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Again many thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ahsan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 07:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-time-filter-issue/m-p/2288294#M33925</guid>
      <dc:creator>Alia2022</dc:creator>
      <dc:date>2022-01-18T07:53:36Z</dc:date>
    </item>
  </channel>
</rss>

