<?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: How to summarize virtual table table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669068#M178846</link>
    <description>&lt;P&gt;I know without data is hard. I tried that before I posted as I was pretty sure it will work but kept complaining that it cant find [ID]&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Apr 2025 10:05:13 GMT</pubDate>
    <dc:creator>stribor45</dc:creator>
    <dc:date>2025-04-26T10:05:13Z</dc:date>
    <item>
      <title>How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4668901#M178843</link>
      <description>&lt;P&gt;I am trying to summarize this virtual table (non base table) and of course I am getting error that the base table is expected. Can someone assist please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DEFINE
    VAR C =
        ADDCOLUMNS (
            DISTINCT (
                UNION (
                    DISTINCT ( 'A'[ID] ),
                    DISTINCT ( 'B'[ID] )
                )
            ),
            "@COUNTRY",
                MINX (
                    FILTER (
                        ADDRESS,
                        ADRESS[USERID] = FORMAT ( [ID], "0" )
                    ),
                    RELATED ( 'Flags'[Country] )
                )
        )

EVALUATE
SUMMARIZE (
    C,
    C[Country],
    "Count", COUNT ( C[ID] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 26 Apr 2025 01:59:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4668901#M178843</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-04-26T01:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4668929#M178845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without sample data, this is just a guess:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EVALUATE
    SUMMARIZE(
        ADDCOLUMNS (
            DISTINCT (
                UNION (
                    DISTINCT ( 'A'[ID] ),
                    DISTINCT ( 'B'[ID] )
                )
            ),
            "@COUNTRY",
                MINX (
                    FILTER (
                        ADDRESS,
                        ADRESS[USERID] = FORMAT ( [ID], "0" )
                    ),
                    RELATED ( 'Flags'[Country] )
                )
        ),
        [Country],
        "Count", COUNT ( [ID] )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't help, could please supply sample data to work with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2025 03:33:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4668929#M178845</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2025-04-26T03:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669068#M178846</link>
      <description>&lt;P&gt;I know without data is hard. I tried that before I posted as I was pretty sure it will work but kept complaining that it cant find [ID]&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2025 10:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669068#M178846</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-04-26T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669272#M178849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;DEFINE
    VAR C =
        ADDCOLUMNS (
            DISTINCT ( UNION ( DISTINCT ( 'A'[ID] ), DISTINCT ( 'B'[ID] ) ) ),
            "@COUNTRY",
                MINX (
                    FILTER ( ADDRESS, ADRESS[USERID] = FORMAT ( [ID], "0" ) ),
                    RELATED ( 'Flags'[Country] )
                )
        )

EVALUATE
GROUPBY ( C, [Country], "Count", SUMX ( CURRENTGROUP (), 1 ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 26 Apr 2025 16:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669272#M178849</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2025-04-26T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669373#M178852</link>
      <description>&lt;P&gt;I tried it and error received was COUNTRY specified in the GROUPBY function was not found in the table&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2025 00:10:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669373#M178852</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-04-27T00:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669710#M178858</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Missed the&amp;nbsp;@ sign &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;DEFINE
    VAR C =
        ADDCOLUMNS (
            DISTINCT ( UNION ( DISTINCT ( 'A'[ID] ), DISTINCT ( 'B'[ID] ) ) ),
            "@COUNTRY",
                MINX (
                    FILTER ( ADDRESS, ADRESS[USERID] = FORMAT ( [ID], "0" ) ),
                    RELATED ( 'Flags'[Country] )
                )
        )

EVALUATE
GROUPBY ( C, [@Country], "Count", SUMX ( CURRENTGROUP (), 1 ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 27 Apr 2025 18:40:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4669710#M178858</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2025-04-27T18:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize virtual table table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4681154#M179294</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 02:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-virtual-table-table/m-p/4681154#M179294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-06T02:25:52Z</dc:date>
    </item>
  </channel>
</rss>

