<?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: Union Table and date table relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1704240#M35120</link>
    <description>&lt;P&gt;Did you ever find a solution to this?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 00:52:52 GMT</pubDate>
    <dc:creator>nevilletwarner</dc:creator>
    <dc:date>2021-03-05T00:52:52Z</dc:date>
    <item>
      <title>Union Table and date table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392504#M25539</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I hope maybe you can help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Dax dates table. Like this: Dates = ADDCOLUMNS( CALENDAR (DATE(YEAR(MIN('Looker Union'[Creation period datetime])),1,1), DATE(YEAR(MAX('Looker Union'[Closing period datetime])),12,31)),&amp;nbsp; &amp;nbsp;"DateAsInteger", FORMAT ( [Date], "YYYYMMDD" ),&amp;nbsp; &amp;nbsp; &amp;nbsp;"Year", YEAR ( [Date] ),&amp;nbsp; &amp;nbsp; &amp;nbsp;"MonthNumber", FORMAT ( [Date], "MM" ), etc. I&amp;nbsp;marked it as a Date table.&lt;/P&gt;&lt;P&gt;Then i also created a Union Table made out of two same tables. I Hide from View the other two tables and using only Union now. Then I created a relationship on dates - that seemed fine. BUT when i try to create any other dax results come back blank in the date column when i check in matrix. attached the screenshot.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="typ"&gt;DAX: Same&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;Period&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; LY &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; CALCULATE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;([&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Total&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; tickets&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;],&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'Dates'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;]))&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="question-details--separator-container--3zh0-"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Can you see anything i might be doing wrong? Any tips or advice would be really appreacited. : )&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392504#M25539</guid>
      <dc:creator>Erika_S</dc:creator>
      <dc:date>2020-09-24T09:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Union Table and date table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392566#M25542</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150539" data-lia-user-login="Erika_S" class="lia-mention lia-mention-user"&gt;Erika_S&lt;/a&gt;&amp;nbsp;, without a glance at your whole data model, it's hard to pinpoint the cause of issue. An attachment of mockup pbix file surely helps a lot.&lt;/P&gt;&lt;P&gt;Is "YearQuarter" a column from Dates table? Any other filters (directly/indirectly) affect this viz?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:32:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392566#M25542</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-09-24T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Union Table and date table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392601#M25544</link>
      <description>&lt;P&gt;Yes, YearQuarter from Dates table. There is literatly nothing else going on (no filters, no other dax (yet) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&amp;nbsp;&lt;/P&gt;&lt;P&gt;If needed ill create a mock up file as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the Dax for same period looks correct, right?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392601#M25544</guid>
      <dc:creator>Erika_S</dc:creator>
      <dc:date>2020-09-24T09:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Union Table and date table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392633#M25545</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;When i do the same dax for same period last year- for one of the tables that I used in the Union, all is fine, returns the correct results, no problem. But for some reason Unioned table just does work. Maybe there are issues doing dax between dates table and unioned tables that i am not aware off?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:50:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1392633#M25545</guid>
      <dc:creator>Erika_S</dc:creator>
      <dc:date>2020-09-24T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Union Table and date table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1704240#M35120</link>
      <description>&lt;P&gt;Did you ever find a solution to this?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 00:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/1704240#M35120</guid>
      <dc:creator>nevilletwarner</dc:creator>
      <dc:date>2021-03-05T00:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Union Table and date table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/3029648#M103486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150539" data-lia-user-login="Erika_S" class="lia-mention lia-mention-user"&gt;Erika_S&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a very similiar problem in the last days. I have an unioned date table and a dataset tablet. I created a Many-Many connection between them and this filter helped me solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your example:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Same Period LY = CALCULATE([Total tickets], &lt;STRONG&gt;ALLCROSSFILTERED('Dates')&lt;/STRONG&gt;, SAMEPERIODLASTYEAR('Dates'[Date]))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it can help for you as well!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 21:03:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Table-and-date-table-relationship/m-p/3029648#M103486</guid>
      <dc:creator>kaszab10</dc:creator>
      <dc:date>2023-01-18T21:03:05Z</dc:date>
    </item>
  </channel>
</rss>

