<?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: Create one slicer / measure from dates in two tables? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439929#M130629</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;. Good point, but the data is not the same. There will be data and columns not existing in one and another.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 12:24:59 GMT</pubDate>
    <dc:creator>carlenb</dc:creator>
    <dc:date>2023-09-20T12:24:59Z</dc:date>
    <item>
      <title>Create one slicer / measure from dates in two tables?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439868#M130623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables. I want to create ONE slicer to filter out the year for both "Year" and "Date order". The difference in the data is that table 1 is 2023 data and table 2 data is past data. See below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: The data is table 1 and table 2 is not the same. There will be columns and data not existing in the other table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create a slicer/measure for this in DAX? I tried to create a relationship in model view but that doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help on this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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>Wed, 20 Sep 2023 12:25:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439868#M130623</guid>
      <dc:creator>carlenb</dc:creator>
      <dc:date>2023-09-20T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create one slicer / measure from dates in two tables?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439904#M130626</link>
      <description>&lt;P&gt;If the tables are the same, but with different periods, I would union them to one table in Power Query first.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:04:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439904#M130626</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-09-20T12:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create one slicer / measure from dates in two tables?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439929#M130629</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;. Good point, but the data is not the same. There will be data and columns not existing in one and another.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439929#M130629</guid>
      <dc:creator>carlenb</dc:creator>
      <dc:date>2023-09-20T12:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create one slicer / measure from dates in two tables?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439942#M130630</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="617109" data-lia-user-login="carlenb" class="lia-mention lia-mention-user"&gt;carlenb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should always have a date table in your data model.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any table that has a relationship with the date table can be compared to each other at a date level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you create your date table, create a one to many relationship between the date column in the date table and the date column in your two existing tables. There shouldn't be any relationship between the exsiting two tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any visuals or slicers you have that require a date, then please use the columns from the date table instead of the existing tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post helps, then please Accept it as the solution&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:35:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3439942#M130630</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-09-20T12:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create one slicer / measure from dates in two tables?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3440143#M130647</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601805" data-lia-user-login="JoeBarry" class="lia-mention lia-mention-user"&gt;JoeBarry&lt;/a&gt;&amp;nbsp;thank you, I think I managed to get it to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now with my dates up and running, let's say I want to connect the suppliers in my two tables so that I can calculate quantity, volumes etc. Some suppliers will exist in both, some will exist in only one. What would be the best practice? Do I simply create a many to many relationship between "Suppliers" in both tables?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3440143#M130647</guid>
      <dc:creator>carlenb</dc:creator>
      <dc:date>2023-09-20T14:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create one slicer / measure from dates in two tables?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3441026#M130707</link>
      <description>&lt;P&gt;You will need to create a supplier dimension table. This will have all of your suppliers and you create the same realationship as the date table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should read this article&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/guidance/star-schema&lt;/A&gt;&amp;nbsp;It will help you develop a good data model, which will allow you to make comparisons acroos multiple tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-one-slicer-measure-from-dates-in-two-tables/m-p/3441026#M130707</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-09-21T07:10:06Z</dc:date>
    </item>
  </channel>
</rss>

