<?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 calculated table from two tables in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3167865#M1069232</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272291" data-lia-user-login="EnderWiggin" class="lia-mention lia-mention-user"&gt;EnderWiggin&lt;/a&gt;&amp;nbsp;Try below. PBIX is attached below signature.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Username Sum Quantity Top 3 = 
    VAR __BaseTable = 
        SUMMARIZE(
            'User Activity Table',
            [UserId],
            "Sum Quantity", SUM('User Activity Table'[Quantity])
        )
    VAR __Table = 
        ADDCOLUMNS(
            __BaseTable,
            "Username", MAXX(FILTER('User Table', [Id] = [UserId]),[Name]),
            "Rank", RANKX(__BaseTable, [Sum Quantity],,DESC)
        )
    VAR __Result =
        SELECTCOLUMNS(
            FILTER(__Table, [Rank] &amp;lt;= 3),
            "Username", [Username],
            "Sum Quantity", [Sum Quantity]
        )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Apr 2023 15:53:04 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-04-02T15:53:04Z</dc:date>
    <item>
      <title>Create calculated table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3167837#M1069226</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to create a measure which shows top3 users by name based on their summarized activity values from 'User table' and 'User Activity table'. The filter connection between the tables is 'User table' &lt;STRONG&gt;1 - many&lt;/STRONG&gt; 'User activity table'&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure result should be a calcualted tabe with two columns: User table [Name], and sum of [Quantity] from User Activity table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried to do it with CALCULATEDTABLE, TOPN and ADDCOLUMN functions, but I can not figure out the correct measure definition. Could you help me to solve this? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 15:10:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3167837#M1069226</guid>
      <dc:creator>EnderWiggin</dc:creator>
      <dc:date>2023-04-02T15:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create calculated table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3167865#M1069232</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272291" data-lia-user-login="EnderWiggin" class="lia-mention lia-mention-user"&gt;EnderWiggin&lt;/a&gt;&amp;nbsp;Try below. PBIX is attached below signature.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Username Sum Quantity Top 3 = 
    VAR __BaseTable = 
        SUMMARIZE(
            'User Activity Table',
            [UserId],
            "Sum Quantity", SUM('User Activity Table'[Quantity])
        )
    VAR __Table = 
        ADDCOLUMNS(
            __BaseTable,
            "Username", MAXX(FILTER('User Table', [Id] = [UserId]),[Name]),
            "Rank", RANKX(__BaseTable, [Sum Quantity],,DESC)
        )
    VAR __Result =
        SELECTCOLUMNS(
            FILTER(__Table, [Rank] &amp;lt;= 3),
            "Username", [Username],
            "Sum Quantity", [Sum Quantity]
        )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 15:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3167865#M1069232</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-04-02T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create calculated table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3168000#M1069268</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;thank you very much for your detailed and clear solution, this is what I wanted.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 20:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-calculated-table-from-two-tables/m-p/3168000#M1069268</guid>
      <dc:creator>EnderWiggin</dc:creator>
      <dc:date>2023-04-02T20:29:27Z</dc:date>
    </item>
  </channel>
</rss>

