<?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 count a specific text value in a different table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907761#M8569</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a calculate column on the Table A:&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COUNT(Table B[name])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can do the same with a measure. I think your column didn't work because you are not in the same context, for this you should use CALCULATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guilherme&lt;/P&gt;&lt;P&gt;&lt;A title="Linkedin" href="https://www.linkedin.com/in/antunesguilherme" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/antunesguilherme&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 10:17:43 GMT</pubDate>
    <dc:creator>g_datasense</dc:creator>
    <dc:date>2020-01-22T10:17:43Z</dc:date>
    <item>
      <title>How to count a specific text value in a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907690#M8567</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just started working with powerBI and can't find the right solution for my question.&amp;nbsp; I have the following tables/collumns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A&amp;nbsp;&lt;/P&gt;&lt;P&gt;- A collumn with names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B (customers)&lt;/P&gt;&lt;P&gt;- Collumn with names where customers bought something (Related to collumn in table A)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in table A i want to add a collumn with the count of the names in collumn 1, and how many times they are mentioned in table B. I tried some count and if statements but haven't figured out the right statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 09:20:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907690#M8567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-22T09:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to count a specific text value in a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907747#M8568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it depends on full your data model, but in common case it could be enogh to create the next measure (if you have relationships between tables) to table1&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = calculate(countrows('Table2'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907747#M8568</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-22T10:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to count a specific text value in a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907761#M8569</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a calculate column on the Table A:&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COUNT(Table B[name])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can do the same with a measure. I think your column didn't work because you are not in the same context, for this you should use CALCULATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guilherme&lt;/P&gt;&lt;P&gt;&lt;A title="Linkedin" href="https://www.linkedin.com/in/antunesguilherme" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/antunesguilherme&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:17:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/907761#M8569</guid>
      <dc:creator>g_datasense</dc:creator>
      <dc:date>2020-01-22T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to count a specific text value in a different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/910780#M8686</link>
      <description>&lt;P&gt;Can i add a last date filter here as well? So that i can count only the values from the last date available.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 12:54:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-count-a-specific-text-value-in-a-different-table/m-p/910780#M8686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-24T12:54:16Z</dc:date>
    </item>
  </channel>
</rss>

