<?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: Count smaller table rows compared to big table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279916#M21795</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if there is 1-M join &lt;/P&gt;
&lt;P&gt;then you can do a new column&lt;/P&gt;
&lt;P&gt;Item Name = RELATED('item'[Brand]) //Item is on one side sales is on M side where column is create &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Column in sales from a city table&lt;/P&gt;
&lt;P&gt;City Name = maxx(FILTER(geography,geography[City Id]=Sales[City Id]),geography[City])&lt;/P&gt;
&lt;P&gt;//You can use as flag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =calculate(countrows(Table1), filter(Table1,Table1[ID] in values(Table2[ID])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/treatas-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/treatas-function&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 10:19:48 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-08-07T10:19:48Z</dc:date>
    <item>
      <title>Count smaller table rows compared to big table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279686#M21783</link>
      <description>&lt;P&gt;I have 2 tables. Table 1 with 5000 variables. Table 2 with 2900 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of my charts are built from the 5000 variables however I have a card to count the variables but keep coming up with 5000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way only count Table 2 variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried RELATED and COUNTROWS to no avail&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 08:30:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279686#M21783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-07T08:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count smaller table rows compared to big table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279878#M21793</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide some data sample and DAX code as its not easy to understand what you are trying to achieve?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 09:41:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279878#M21793</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-08-07T09:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count smaller table rows compared to big table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279916#M21795</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if there is 1-M join &lt;/P&gt;
&lt;P&gt;then you can do a new column&lt;/P&gt;
&lt;P&gt;Item Name = RELATED('item'[Brand]) //Item is on one side sales is on M side where column is create &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Column in sales from a city table&lt;/P&gt;
&lt;P&gt;City Name = maxx(FILTER(geography,geography[City Id]=Sales[City Id]),geography[City])&lt;/P&gt;
&lt;P&gt;//You can use as flag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =calculate(countrows(Table1), filter(Table1,Table1[ID] in values(Table2[ID])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/treatas-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/treatas-function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 10:19:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-smaller-table-rows-compared-to-big-table/m-p/1279916#M21795</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-07T10:19:48Z</dc:date>
    </item>
  </channel>
</rss>

