<?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: Putting a matrix on a matrix (or: Counting the results of an existing Matrix) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4613622#M176563</link>
    <description>&lt;P&gt;thanks for the quick answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around a bit and managed to build a new TABLE (Table 2) with the desired output results.&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;However, If I understood it correctly, this new table (Table 2) cannot be filtered again based on dimensions that I had in my Raw Data Table (Table 1), e.g. like "country" or "profit Center (see fitler on the below picture).&amp;nbsp;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to basically have Table 2, but still being able to filter Table 2 for a) country or b) profit center, data which I had in table 2, and then see the (adjusted) output again in Table 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it makes sense what I am writing.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 21:53:35 GMT</pubDate>
    <dc:creator>Thomas-Frank</dc:creator>
    <dc:date>2025-03-17T21:53:35Z</dc:date>
    <item>
      <title>Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4612279#M176526</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the result that I would like to generate.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;(I looked through some existing questions, but the answers there were above my head ... also with more complex topics)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 06:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4612279#M176526</guid>
      <dc:creator>Thomas-Frank</dc:creator>
      <dc:date>2025-03-17T06:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4612833#M176542</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240060" data-lia-user-login="Thomas-Frank" class="lia-mention lia-mention-user"&gt;Thomas-Frank&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;o create "Matrix 2" in Power BI based on the results of "Matrix 1," we need to count how often each DISTINCT_COUNT_PCS value appears across all employees. This requires aggregating occurrences of DISTINCT_COUNT_PCS values and displaying them in a separate matrix.&lt;/P&gt;
&lt;P&gt;One way to achieve this is by using a DAX measure that counts the occurrences of each DISTINCT_COUNT_PCS value in the dataset. The following measure accomplishes this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Frequency Count = 
VAR PCSCounts = VALUES('Table'[DISTINCT_COUNT_PCS])
RETURN 
    COUNTROWS(
        FILTER(
            ALL('Table'), 
            'Table'[DISTINCT_COUNT_PCS] IN PCSCounts
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Alternatively, if you prefer to create a separate table rather than using a measure, you can use the SUMMARIZE function to generate a new table that groups DISTINCT_COUNT_PCS values and counts their occurrences:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Matrix2_Table = 
SUMMARIZE(
    'Table',
    'Table'[DISTINCT_COUNT_PCS],
    "Frequency Count", COUNT('Table'[Sales Employee Name])
)
&lt;/LI-CODE&gt;
&lt;P&gt;In Power BI, you can use the first approach by adding the measure to your matrix visualization, or the second approach to create a new summarized table and display it in a matrix. This will ensure that you get a count of how many times each DISTINCT_COUNT_PCS value appears across all employees, matching the "Frequency Count" column shown in your desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 13:01:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4612833#M176542</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-03-17T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4613622#M176563</link>
      <description>&lt;P&gt;thanks for the quick answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around a bit and managed to build a new TABLE (Table 2) with the desired output results.&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;However, If I understood it correctly, this new table (Table 2) cannot be filtered again based on dimensions that I had in my Raw Data Table (Table 1), e.g. like "country" or "profit Center (see fitler on the below picture).&amp;nbsp;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to basically have Table 2, but still being able to filter Table 2 for a) country or b) profit center, data which I had in table 2, and then see the (adjusted) output again in Table 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it makes sense what I am writing.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 21:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4613622#M176563</guid>
      <dc:creator>Thomas-Frank</dc:creator>
      <dc:date>2025-03-17T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4614349#M176576</link>
      <description>&lt;P&gt;So my guess is that DISTINCT_COUNT_PCS is a measure that you want to use as a (dimension) column. For this you will need a helper table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create a table&lt;/P&gt;
&lt;P&gt;NUMBER_OF_PCs_BY_PERSON = &lt;BR /&gt;SELECTCOLUMNS(GENERATESERIES(0, MAXX(VALUES(Table[Sales Employee Name]),[DISTINCT_COUNT_PCS]),1), "NUMBER_OF_PCs_BY_PERSON",[Value])&lt;/P&gt;
&lt;P&gt;create measures&lt;BR /&gt;NUMBER_OF_SALES_EMPLOYEES = &lt;BR /&gt;VAR npc = SELECTEDVALUE(NUMBER_OF_PCs_BY_PERSON[NUMBER_OF_PCs_BY_PERSON])&lt;BR /&gt;COUNTROWS(FILTER(VALUES(Table[Sales Employee Name]),[DISTINCT_COUNT_PCS]=npc)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 09:25:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4614349#M176576</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-03-18T09:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4621325#M176884</link>
      <description>&lt;P&gt;Thank you. Let me digest it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2025 15:52:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4621325#M176884</guid>
      <dc:creator>Thomas-Frank</dc:creator>
      <dc:date>2025-03-23T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4622282#M176929</link>
      <description>&lt;P&gt;I see something missing in my example measure:&lt;BR /&gt;&lt;SPAN&gt;NUMBER_OF_SALES_EMPLOYEES =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR npc = SELECTEDVALUE(NUMBER_OF_PCs_BY_PERSON[NUMBER_OF_PCs_BY_PERSON])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt; COUNTROWS(FILTER(VALUES(Table[Sales Employee Name]),[DISTINCT_COUNT_PCS]=npc)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 11:50:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4622282#M176929</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-03-24T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4690340#M179620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240060" data-lia-user-login="Thomas-Frank" class="lia-mention lia-mention-user"&gt;Thomas-Frank&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We have not received a response from you regarding the query and were following up to check if you have found a resolution.&amp;nbsp;If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 08:35:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4690340#M179620</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-05-13T08:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4696017#M179850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240060" data-lia-user-login="Thomas-Frank" class="lia-mention lia-mention-user"&gt;Thomas-Frank&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 12:39:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4696017#M179850</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-05-16T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Putting a matrix on a matrix (or: Counting the results of an existing Matrix)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4701641#M180087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240060" data-lia-user-login="Thomas-Frank" class="lia-mention lia-mention-user"&gt;Thomas-Frank&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 12:04:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Putting-a-matrix-on-a-matrix-or-Counting-the-results-of-an/m-p/4701641#M180087</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-05-21T12:04:49Z</dc:date>
    </item>
  </channel>
</rss>

