<?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: Count the number of values in a row across columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-values-in-a-row-across-columns/m-p/3470130#M132492</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628047" data-lia-user-login="jcarbo0321" class="lia-mention lia-mention-user"&gt;jcarbo0321&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power bi DAX calculations are for columns, if you want to achieve this idea, I suggest you first transform the data.&lt;/P&gt;
&lt;P&gt;Based on your description, I create a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first step is to create an index for the table in order to pivot the columns:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then pivot column:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be accomplished using the index field and measure and below is the result:&lt;/P&gt;
&lt;P&gt;Measure = AVERAGE('Table'[Value])&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this will work, and if you have any questions, please provide me with more information to make sure we can better solve the problem for you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An attachment for your reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider &lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 02:46:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-11T02:46:39Z</dc:date>
    <item>
      <title>Count the number of values in a row across columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-values-in-a-row-across-columns/m-p/3467335#M132348</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table like the one here:&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And I would like to create a measure or a calculated column or anything that would return the average of a row across columns, ignoring the blanks. Ideally, this would mean that a row with blanks would be calculated as an average of the true numbers across the row. For example, in the table in Excel where the above information can be found, I made a column with formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=AVERAGE([Jan FTE]:[Dec FTE]) which always calculates correctly, but I would rather it be a DAX measure or column if at all possible. Mainly because Power Pivot is determining the type of these columns as text and I can't get it to change despite many tries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to do this in DAX?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 17:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-values-in-a-row-across-columns/m-p/3467335#M132348</guid>
      <dc:creator>jcarbo0321</dc:creator>
      <dc:date>2023-10-09T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of values in a row across columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-values-in-a-row-across-columns/m-p/3470130#M132492</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628047" data-lia-user-login="jcarbo0321" class="lia-mention lia-mention-user"&gt;jcarbo0321&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power bi DAX calculations are for columns, if you want to achieve this idea, I suggest you first transform the data.&lt;/P&gt;
&lt;P&gt;Based on your description, I create a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first step is to create an index for the table in order to pivot the columns:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then pivot column:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be accomplished using the index field and measure and below is the result:&lt;/P&gt;
&lt;P&gt;Measure = AVERAGE('Table'[Value])&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this will work, and if you have any questions, please provide me with more information to make sure we can better solve the problem for you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An attachment for your reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider &lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 02:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-number-of-values-in-a-row-across-columns/m-p/3470130#M132492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-11T02:46:39Z</dc:date>
    </item>
  </channel>
</rss>

