<?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 Creating measure for count of occurrence of the value of one column in a different table. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2922671#M95888</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm working on creating a PowerBI reporting analyzing incident data. I'm trying to calculate how many times a value in Table 1 Column 1 occurs in column 2 Table 2. I am struggling with the values that have multiple "Tactics".&lt;BR /&gt;Based on the tables in the screenshot I am looking for an output like below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;IntialAccess&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Discovery&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Exfiltration&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully there is an easy answer I am not seeing.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 21:00:57 GMT</pubDate>
    <dc:creator>PowerBEye1</dc:creator>
    <dc:date>2022-11-22T21:00:57Z</dc:date>
    <item>
      <title>Creating measure for count of occurrence of the value of one column in a different table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2922671#M95888</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm working on creating a PowerBI reporting analyzing incident data. I'm trying to calculate how many times a value in Table 1 Column 1 occurs in column 2 Table 2. I am struggling with the values that have multiple "Tactics".&lt;BR /&gt;Based on the tables in the screenshot I am looking for an output like below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;IntialAccess&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Discovery&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Exfiltration&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully there is an easy answer I am not seeing.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2922671#M95888</guid>
      <dc:creator>PowerBEye1</dc:creator>
      <dc:date>2022-11-22T21:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure for count of occurrence of the value of one column in a different table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2922717#M95892</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="116964" data-lia-user-login="PowerBEye1" class="lia-mention lia-mention-user"&gt;PowerBEye1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suggest first to split the Tactic&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;column in Table 2 into rows in Power Query. Check this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/split-columns-delimiter" target="_blank"&gt;https://learn.microsoft.com/en-us/power-query/split-columns-delimiter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:39:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2922717#M95892</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-22T21:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure for count of occurrence of the value of one column in a different table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2944166#M97349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="116964" data-lia-user-login="PowerBEye1" class="lia-mention lia-mention-user"&gt;PowerBEye1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;count = CALCULATE(COUNTROWS('Table'),FILTER('Table',CONTAINSSTRING('Table'[Tactic],MAX(List[Column1]))))&lt;/LI-CODE&gt;
&lt;P&gt;result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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 _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 09:30:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-for-count-of-occurrence-of-the-value-of-one/m-p/2944166#M97349</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-12-02T09:30:52Z</dc:date>
    </item>
  </channel>
</rss>

