<?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: A Measure that sums only selected columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2934970#M96659</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476153" data-lia-user-login="Dynermite" class="lia-mention lia-mention-user"&gt;Dynermite&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, please share more detailed information to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 08:14:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-29T08:14:24Z</dc:date>
    <item>
      <title>A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2923979#M95960</link>
      <description>&lt;P&gt;This might be too complicated for PowerBi but im trying to convert functionality from Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have 36 columns each containing a weeks demand.&lt;/P&gt;&lt;P&gt;I have used a paramater containing the first 9 weeks as an example and a static 36 week sum total.&lt;/P&gt;&lt;P&gt;My fallback will be to painfully create multiple sum columns like the 36 week demand one for each potential option. e.g 1 week, 2 weeks, 5 weeks, 10 weeks.&lt;/P&gt;&lt;P&gt;Is there a way to have a sum measure (or other) that sums the columns shown or selected in a paramater. (Im open to completley different methods ive just followed my intuition so far.&lt;/P&gt;&lt;P&gt;So a 4th column example using the picture below would be. (ignore the 36 week column for this example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selected weeks demand:&lt;/P&gt;&lt;P&gt;15.53&lt;/P&gt;&lt;P&gt;12.89&lt;/P&gt;&lt;P&gt;45.92&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;6.28&lt;/P&gt;&lt;P&gt;1.62&lt;/P&gt;&lt;P&gt;2.64&lt;/P&gt;&lt;P&gt;16.09&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;The idea is then that i could select week 8 and 9 and it would then sum the 5 selected columns.&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2923979#M95960</guid>
      <dc:creator>Dynermite</dc:creator>
      <dc:date>2022-11-23T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2923997#M95964</link>
      <description>&lt;P&gt;I think you might do better to unpivot the columns so that you have rows consisting of the item number, the week number and the value. Slicing and filtering by the week number then becomes trivial.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2923997#M95964</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-11-23T09:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2924038#M95966</link>
      <description>&lt;P&gt;I may give up and do that but currently i have quite a few more descriptive columns i would like to keep aswell so was just curious to ask.&lt;BR /&gt;Thanks though.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:57:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2924038#M95966</guid>
      <dc:creator>Dynermite</dc:creator>
      <dc:date>2022-11-23T09:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2925824#M96107</link>
      <description>&lt;P&gt;your slicer determines the scope of weeks to sum, but how do you expect to define the scope of items to sum?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 03:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2925824#M96107</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-24T03:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2926516#M96156</link>
      <description>&lt;P&gt;The Items are completley unique so summing the rows is enough. The only other thing i would do is to sum everything together.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:59:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2926516#M96156</guid>
      <dc:creator>Dynermite</dc:creator>
      <dc:date>2022-11-24T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2926900#M96195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476153" data-lia-user-login="Dynermite" class="lia-mention lia-mention-user"&gt;Dynermite&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think you should first create the below measure&amp;nbsp; and check ti will only sum the selected values of the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a = CALCULATE(SUM(table1[a]), ALLSELECTED(table1[Week]))&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;BR /&gt;Nikhil Chenna&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 10:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2926900#M96195</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-24T10:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2928255#M96263</link>
      <description>&lt;P&gt;If I understand you correctly, here is my solution for you.&lt;BR /&gt;You should unpivot your data in power query to create a column containing the week and after that, you use the matrix visualization and put that week to the row header. And you can add a week slicer to filter out the week you don't want to see. For the sum of the selected week in the slicer, it had a column total on the right of the matrix.&amp;nbsp;&lt;BR /&gt;For the static 36 weeks I have no clue about it lol&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 02:06:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2928255#M96263</guid>
      <dc:creator>kidpk111</dc:creator>
      <dc:date>2022-11-25T02:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2934970#M96659</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476153" data-lia-user-login="Dynermite" class="lia-mention lia-mention-user"&gt;Dynermite&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, please share more detailed information to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 08:14:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2934970#M96659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T08:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: A Measure that sums only selected columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2935731#M96728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476153" data-lia-user-login="Dynermite" class="lia-mention lia-mention-user"&gt;Dynermite&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you check my solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Chenna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 12:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-Measure-that-sums-only-selected-columns/m-p/2935731#M96728</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-29T12:06:27Z</dc:date>
    </item>
  </channel>
</rss>

