<?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: Sum of all Column Values. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1875664#M40259</link>
    <description>&lt;P&gt;Thanks Greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exactly what I wanted to hear.&lt;/P&gt;&lt;P&gt;I also thought that looping is not a feasible option in here.&lt;/P&gt;&lt;P&gt;Thanks a ton for confirming the same.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 16:30:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-01T16:30:12Z</dc:date>
    <item>
      <title>Sum of all Column Values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1867549#M39996</link>
      <description>&lt;P&gt;I want to create a measure that will give me a sum of all column values present in my table.&lt;/P&gt;&lt;P&gt;Consider I have a table called 'Sales' and it has more than 1 columns named as 'Sales1', 'Sales2',...'SalesN'.&lt;/P&gt;&lt;P&gt;The data type of all columns is same and all columns contain a numeric value.&lt;/P&gt;&lt;P&gt;Now, if I want to create a measure to show sum of all column values, then I will have to use SUM&amp;nbsp; function again and again.&lt;/P&gt;&lt;P&gt;If there are 2 or 3 columns, then it might be efficient to use that function.&lt;/P&gt;&lt;P&gt;But if in the case the table has many columns, at that time what could be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone knows a way to do this, then please do let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanket Bhagwat.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 12:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1867549#M39996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-27T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all Column Values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1867677#M40000</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The best approach is to unpivot all your sales column into one column then it is easy. If you need a DAX solution then add the following column to your table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales = SUMX( {[Sales 1],[Sales 2],[Sales 3] },[Value] )&lt;/LI-CODE&gt;
&lt;P&gt;Sample Data&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Create a measure to add the new column to get the total overall sales:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Overall Sales = SUM(Table6[Total Sales])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1867677#M40000</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-27T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all Column Values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1867766#M40002</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your approach can be one solution to that.&lt;/P&gt;&lt;P&gt;But I have been instructed not to unpivot and see if we can use loops in there.&lt;/P&gt;&lt;P&gt;I have a table with 56 columns and I need to create buckets.&lt;/P&gt;&lt;P&gt;1 bucket of 31 columns and so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was reading '&lt;A href="https://community.powerbi.com/t5/Community-Blog/For-and-While-Loops-in-DAX/ba-p/636314'" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/For-and-While-Loops-in-DAX/ba-p/636314'&lt;/A&gt;&amp;nbsp;this article for same, but haven't got a perfect solution.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:47:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1867766#M40002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-27T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all Column Values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1875246#M40240</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;In response to your private message,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;'s solution does not require unpivoting the columns although I agree that is the best way. You could still create your buckets because the Attribute column would provide the original column heading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also use DAX Unpivot if you absolutely do not want to do it in Power Query and essentially achieve the same effect:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/m-p/574832#M256" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/m-p/574832#M256&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really do not see an application for looping here.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 13:54:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1875246#M40240</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-06-01T13:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all Column Values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1875664#M40259</link>
      <description>&lt;P&gt;Thanks Greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exactly what I wanted to hear.&lt;/P&gt;&lt;P&gt;I also thought that looping is not a feasible option in here.&lt;/P&gt;&lt;P&gt;Thanks a ton for confirming the same.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:30:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-all-Column-Values/m-p/1875664#M40259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T16:30:12Z</dc:date>
    </item>
  </channel>
</rss>

