<?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: Row Count Sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3688381#M143301</link>
    <description>&lt;P&gt;I don't think this is the solution. Requester wanted this to work no matter what column is in visual(same table to another table).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 12:51:00 GMT</pubDate>
    <dc:creator>talespin</dc:creator>
    <dc:date>2024-02-08T12:51:00Z</dc:date>
    <item>
      <title>Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3676117#M142738</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck here. The request is to have a 1 in every row of a table built in the report, but the sum gives the total of those rows.&lt;/P&gt;&lt;P&gt;For showing the "1" everywhere, I added a custom column equals to 1 to the fact table, I then summarized the column by distinctcount but my result for the total is 1 also (I would need here the total row count like in column 3). The third column is a measure&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Row Count = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'_CiQ Milestone'&lt;/SPAN&gt;&lt;SPAN&gt;[RowCount]&lt;/SPAN&gt;&lt;SPAN&gt;) that gives me the right total but is not showing me a 1 in each row. Can someone help me with this request?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;</description>
      <pubDate>Fri, 02 Feb 2024 17:10:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3676117#M142738</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-02T17:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3676155#M142742</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the end result you are looking for?&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;</description>
      <pubDate>Fri, 02 Feb 2024 17:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3676155#M142742</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-02T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3679927#M142890</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, what you are showing in the picture is what I need to show.&lt;/P&gt;&lt;P&gt;However, the problem is that AWB number can be repeated many times in the fact table, for example the AWB number 14 in your example table can show up twice in the table depending on the dimension you want to break it into. Therefore your solution is giving me the same result as the third column in my example &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 10:04:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3679927#M142890</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-05T10:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680248#M142906</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use this measure, replace it with your column. If there are other columns in your visual, might need to modify measure. Ignore the custom column in second screenshot(not required).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MCount =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;HASONEFILTER&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;TestTbl4&lt;/SPAN&gt;&lt;SPAN&gt;[AWBNo]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;TestTbl4&lt;/SPAN&gt;&lt;SPAN&gt;[AWBNo]&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Feb 2024 12:56:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680248#M142906</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-05T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680399#M142911</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think Distinctcount() function work as you want&lt;BR /&gt;make a measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure =
distinctcount(tablename[awb number])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680399#M142911</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-02-05T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680416#M142912</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I already tried distinctcount. The problem with this, is the second column of my table above. It doesnt give me the total, the total is shown as 1 as well &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:55:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680416#M142912</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-05T13:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680431#M142915</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;Your formula almost works is showing a one and the total.&lt;/P&gt;&lt;P&gt;However, the request is a bit more complicated, in my example I used AWB Number but the request is that row count should work with any column in the table. See with AWB version below, is not working anymore (your solution is RowCount1 in red)&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;</description>
      <pubDate>Mon, 05 Feb 2024 13:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680431#M142915</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-05T13:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680439#M142916</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;countofid = IF(ISINSCOPE('Table'[id]),1,SUM('Table'[value]))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:03:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680439#M142916</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-02-05T14:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680454#M142918</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"However, the request is a bit more complicated, in my example I used AWB Number but the request is that row count should work with any column in the table."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are the columns from same table or can be from different table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this if columns in visual are from same table. Test the total count.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TestTbl4&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;TestTbl4&lt;/SPAN&gt;&lt;SPAN&gt;[AWBNo]&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:14:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680454#M142918</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-05T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680541#M142921</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is almost perfect.!!! However only works with AWB Number if I substitute AWB number column with AWB version it doesnt work anymore :(.&lt;/P&gt;&lt;P&gt;Is there a way to use this formula to build a table from any column ?? see below first image is AWB number and is perfect, second image though is AWB version instead of AWB number and it doesnt work anymore. I need to have the AWB number in the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680541#M142921</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-05T14:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680553#M142923</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate so much the follow up. Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this formula is giving me teh same result as the previous one, a one in each row with a total but if I bring in AWB version instead of AWB number is not working anymore. I need to have AWB number in the table &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:54:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680553#M142923</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-05T14:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680560#M142924</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible, please share pbix file with all sensitive data removed.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:57:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680560#M142924</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-05T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680587#M142925</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616151" data-lia-user-login="andicornejo12" class="lia-mention lia-mention-user"&gt;andicornejo12&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;not sure but just try&amp;nbsp;&lt;/P&gt;&lt;P&gt;nested if&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;countofid = IF(
          ISINSCOPE('Table'[awb number]),
          1,
          IF(
            ISINSCOPE('Table'[awb vers no]),
            1,sum('Table'[awb vers no])
          )
          )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 15:06:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3680587#M142925</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-02-05T15:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3688381#M143301</link>
      <description>&lt;P&gt;I don't think this is the solution. Requester wanted this to work no matter what column is in visual(same table to another table).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 12:51:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3688381#M143301</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-08T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3689641#M143368</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;no is not the full solution as you said, the request is that it works with any column but I dont think there is other way :S&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 00:38:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-Count-Sum/m-p/3689641#M143368</guid>
      <dc:creator>andicornejo12</dc:creator>
      <dc:date>2024-02-09T00:38:46Z</dc:date>
    </item>
  </channel>
</rss>

