<?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 do you display the total count of rows within each row of a matrix? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808788#M148922</link>
    <description>&lt;P&gt;Try ALLSELECTED()&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 21:34:22 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-04-03T21:34:22Z</dc:date>
    <item>
      <title>How do you display the total count of rows within each row of a matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808547#M148905</link>
      <description>&lt;P&gt;I am looking to create a matrix that looks like this.&lt;/P&gt;&lt;P&gt;The ID and Name fields have been selected from slicers. Now I need each row to display the total number of selected rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Name&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Total Rows&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;AB&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;34&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;CD&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;56&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;EF&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;78&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;GH&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems very simple. But any way I try to remove keep/remove context filters, the Total Rows just displays 1.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:43:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808547#M148905</guid>
      <dc:creator>AABright</dc:creator>
      <dc:date>2024-04-03T18:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the total count of rows within each row of a matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808729#M148916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370079" data-lia-user-login="AABright" class="lia-mention lia-mention-user"&gt;AABright&lt;/a&gt;&amp;nbsp;, If you have a single table and looking to create a DAX measure to count rows for selected values from a slicer you can simply use something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Total Rows = COUNTROWS(TableName)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your specific question, please share your datamodel or sample data to be able to help you further. See this post.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523#M607150" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:59:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808729#M148916</guid>
      <dc:creator>amustafa</dc:creator>
      <dc:date>2024-04-03T20:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the total count of rows within each row of a matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808751#M148918</link>
      <description>&lt;P&gt;Thank you for the suggestion&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="567500" data-lia-user-login="amustafa" class="lia-mention lia-mention-user"&gt;amustafa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That produced the same result where the level of detail is applied to each row in the matrix - so it just counts 1.&lt;/P&gt;&lt;P&gt;In a card it displays the correct number. But I am trying to get 397 into each row, rather than 1.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 21:11:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808751#M148918</guid>
      <dc:creator>AABright</dc:creator>
      <dc:date>2024-04-03T21:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the total count of rows within each row of a matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808766#M148919</link>
      <description>&lt;P&gt;OK, if that's what you want &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; See my sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Total Rows Count =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;financials&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;financials&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 21:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808766#M148919</guid>
      <dc:creator>amustafa</dc:creator>
      <dc:date>2024-04-03T21:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the total count of rows within each row of a matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808788#M148922</link>
      <description>&lt;P&gt;Try ALLSELECTED()&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 21:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3808788#M148922</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-03T21:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the total count of rows within each row of a matrix?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3809142#M148935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370079" data-lia-user-login="AABright" class="lia-mention lia-mention-user"&gt;AABright&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I’d like to acknowledge the valuable input provided by the&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;. Their initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the issue. &lt;BR /&gt;In my investigation, I took the following steps:&lt;BR /&gt;Here some steps that I want to share, you can check them if they suitable for your requirement.&lt;BR /&gt;Here is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Rows = CALCULATE(COUNTROWS(VALUES('Table'[ID])), ALLSELECTED('Table'))&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Albert He&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 02:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-display-the-total-count-of-rows-within-each-row-of-a/m-p/3809142#M148935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-04T02:29:10Z</dc:date>
    </item>
  </channel>
</rss>

