<?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/Join to a new table from two tables with no related fields in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2189799#M51163</link>
    <description>&lt;P&gt;Hi and thank you, you are correct, sadly I am doing this manually.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It should look like:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Department&lt;/TD&gt;&lt;TD&gt;Distinct Employees&lt;/TD&gt;&lt;TD&gt;Percentage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;25%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;June&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;67%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;67%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The denominator is the total employees in the department.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 08:49:14 GMT</pubDate>
    <dc:creator>MosheLP</dc:creator>
    <dc:date>2021-11-15T08:49:14Z</dc:date>
    <item>
      <title>Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2183566#M50873</link>
      <description>&lt;P&gt;Hi PBI'ers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stumped , several hours later &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; how do I do the below in DAX:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/Join-Pivot-two-tables-with-no-relations/m-p/1899662#M56244" target="_blank"&gt;Solved: Join/Pivot two tables with no relations? - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally there would be a row for each "date" and "name" in their respective columns instead.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:59:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2183566#M50873</guid>
      <dc:creator>MosheLP</dc:creator>
      <dc:date>2021-11-10T17:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2183592#M50875</link>
      <description>&lt;P&gt;There's not a nice way to pivot with DAX. You have to define a new column manually for each one you want. See here for example:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/td-p/574832" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/td-p/574832&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, you very rarely actually need to do this in order to achieve your ultimate goal since DAX handles unpivoted data nicely. What's the reasoning behind doing this? Are you after a certain visual or calculation or what? Are you actually looking for the pivoted shape or is an unpivoted crossjoin that you can then pivot in a matrix visual OK too?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2183592#M50875</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-10T18:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2184399#M50907</link>
      <description>&lt;P&gt;Thanks for your reply, much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to create a bar race chart, requiring me to show clusters of users' (e.g. employees in a Department) product consumption percentage over a period of months i.e. which department has the highest product consumption percentage from it's employees.&lt;BR /&gt;&lt;BR /&gt;So i have two tables, one with the users in their clusters and the second table being the product consumption by user for those who have consumed a product.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Therefor my intention is to aggregate the purchases by department into a new table so as to obtain the percentage value for product consumption in a department. After which I will then need to accrue(running total) the product consumption aggregate for each department by month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added an excel e.g that can hopefully explain better:&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 05:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2184399#M50907</guid>
      <dc:creator>MosheLP</dc:creator>
      <dc:date>2021-11-11T05:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2185523#M50956</link>
      <description>&lt;P&gt;This is definitely doable. If you share a file or something I can copy &amp;amp; paste from, I can probably help but I'm not keen to retype data from a screenshot.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 15:33:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2185523#M50956</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-11T15:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2185549#M50957</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Please see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;People Data Table&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Employee Name&lt;/TD&gt;&lt;TD&gt;Department Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Diana&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mark&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Harry&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sandra&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sam&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;/TR&gt;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gt;33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;25%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;June&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;67%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps, and thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 15:46:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2185549#M50957</guid>
      <dc:creator>MosheLP</dc:creator>
      <dc:date>2021-11-11T15:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2185614#M50960</link>
      <description>&lt;P&gt;I don't understand where some of your numbers are coming from (e.g. how can there be a count of 3 in August when there are only two rows?) but I think something like this should get you closer to what you're after:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Desired =
ADDCOLUMNS (
    SUMMARIZE (
        'Product',
        'Product'[Month],
        'Product'[Department Name],
        "Distinct Employees", DISTINCTCOUNT ( 'Product'[Employee Name] )
    ),
    "Percentage",
        DIVIDE (
            [Distinct Employees],
            COUNTROWS (
                FILTER (
                    People,
                    People[Department Name] = EARLIER ( 'Product'[Department Name] )
                )
            )
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Nov 2021 16:21:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2185614#M50960</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-11T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2188839#M51116</link>
      <description>&lt;P&gt;Hi Alexis,&lt;BR /&gt;&lt;BR /&gt;I gave it a test and it's almost there.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This missing part is just the values accruing which is already done in the percentage column as an example. So I realise that the EARLIER function has large to play in this but I have had no luck since my tests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also realise the results table can be somewhat confusing as&amp;nbsp; I manually entered the results I am looking to achieve. Each month that follows is meant to take into account activity from the previous one meaning August should also include Finance in it's running total together with the accrued distinct employees for it's department.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is why there are 3 employees in for IT in August as Mark, Harry and Tom consumed their products over these three months. I hope that clears up the confusion and I am sincerely grateful.&lt;BR /&gt;&lt;BR /&gt;If you kindly can refer to my results table&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 12:20:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2188839#M51116</guid>
      <dc:creator>MosheLP</dc:creator>
      <dc:date>2021-11-14T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2189728#M51158</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338062" data-lia-user-login="MosheLP" class="lia-mention lia-mention-user"&gt;MosheLP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, but I still can’t understand the logic of your two columns [distinct employees] and [Percentage].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said that there are 3 employees in for IT in August as Mark, Harry, and Tom, but for HR why there is only 1 employee in? Henry and Sam are in in the recent 3 months based on your logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the column [Percentage], would you like to explain the denominator of it in detail?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 08:22:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2189728#M51158</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-11-15T08:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2189799#M51163</link>
      <description>&lt;P&gt;Hi and thank you, you are correct, sadly I am doing this manually.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It should look like:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Department&lt;/TD&gt;&lt;TD&gt;Distinct Employees&lt;/TD&gt;&lt;TD&gt;Percentage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;25%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;June&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;67%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;IT&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;August&lt;/TD&gt;&lt;TD&gt;Finance&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;67%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The denominator is the total employees in the department.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 08:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2189799#M51163</guid>
      <dc:creator>MosheLP</dc:creator>
      <dc:date>2021-11-15T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Join to a new table from two tables with no related fields</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2192008#M51264</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338062" data-lia-user-login="MosheLP" class="lia-mention lia-mention-user"&gt;MosheLP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description and sample test data, I can now roughly understand your requirement, but I still think the percentage value for the May HR is incorrect because the HR department only has two employees in your test data, it should be 50% am I right?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your logic, I figured out a method to achieve this, you can follow my steps:&lt;/P&gt;
&lt;P&gt;Create a calculated column in the table ‘Product consumption’ to get the month number:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month number =

var _number=

SWITCH([MONTH],"August",08,"December",12,"July",07,"November",11,"October",10,"September",09,"April",04,"February",02,"January",01,"March",03,"May",05,"June",06)

return

VALUE(_number)&lt;/LI-CODE&gt;
&lt;P&gt;Then create two measures like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Distinct Employees =

CALCULATE(DISTINCTCOUNT('Product consumption'[Employee Name]),FILTER(ALL('Product consumption'),[Month number]&amp;lt;=MAX('Product consumption'[Month number])&amp;amp;&amp;amp;[Month number]&amp;gt;=MAX('Product consumption'[Month number])-2&amp;amp;&amp;amp;[Department Name]=MAX('Product consumption'[Department Name])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Percentage =

var _count=COUNTX(FILTER(ALL('People Data Table'),[Department Name]=MAX('Product consumption'[Department Name])),[Employee Name])

return

divide([Distinct Employees],_count)&lt;/LI-CODE&gt;
&lt;P&gt;Then set the measure format of [Percentage] to percentage:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create a table chart and place it like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can get what you want.&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 08:35:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Join-to-a-new-table-from-two-tables-with-no-related/m-p/2192008#M51264</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-11-16T08:35:10Z</dc:date>
    </item>
  </channel>
</rss>

