<?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 Sum Row by Row and Bin values into groups in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835738#M90478</link>
    <description>&lt;P&gt;Hi, I have a raw data set where there are multiple lines for each Project ID and Country.&lt;/P&gt;&lt;P&gt;I then grouped this data by Project ID &amp;amp; Country (Market), and aggregated all NTSLC$ values. This is my "Proj Aggregation Test" table in powerBI.&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;However, when I create a table in PowerBI, and put the financials, it is giving me the TOTAL value instead of the sum of each line item (eg. first row should be the total financials of the 2 projects in that bin)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How do I write a DAX to sum only the rows???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 05:29:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-12T05:29:16Z</dc:date>
    <item>
      <title>Sum Row by Row and Bin values into groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835738#M90478</link>
      <description>&lt;P&gt;Hi, I have a raw data set where there are multiple lines for each Project ID and Country.&lt;/P&gt;&lt;P&gt;I then grouped this data by Project ID &amp;amp; Country (Market), and aggregated all NTSLC$ values. This is my "Proj Aggregation Test" table in powerBI.&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;However, when I create a table in PowerBI, and put the financials, it is giving me the TOTAL value instead of the sum of each line item (eg. first row should be the total financials of the 2 projects in that bin)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How do I write a DAX to sum only the rows???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 05:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835738#M90478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-12T05:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Row by Row and Bin values into groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835746#M90479</link>
      <description>&lt;P&gt;Where is the Value Range Column and how is it connected to your data?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 05:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835746#M90479</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-10-12T05:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Row by Row and Bin values into groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835969#M90498</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299202" data-lia-user-login="lukiz84" class="lia-mention lia-mention-user"&gt;lukiz84&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My Value Range column is from a separate table called "Proj Value Rank" (not connected to any tables):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this message to group projects into bins using this link:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.burningsuit.co.uk/blog/dax-how-group-measures-numeric-ranges" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.burningsuit.co.uk/blog/dax-how-group-measures-numeric-ranges&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my DAX measure based on the above link:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;No of Projects =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;HASONEVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Proj Value Rank'[MinValue Range]),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('Proj Aggregation Test', [Sum NTSLC]&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;('Proj Value Rank'[MinValue Range])&amp;amp;&amp;amp; [Sum NTSLC]&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;('Proj Value Rank'[MaxValue Range]) ) ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;('Proj Aggregation Test') )&lt;/SPAN&gt;&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;</description>
      <pubDate>Wed, 12 Oct 2022 07:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2835969#M90498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-12T07:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Row by Row and Bin values into groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2837214#M90549</link>
      <description>&lt;LI-CODE lang="markup"&gt;NTSLC SUMS =
VAR selectedRangeMin = SELECTEDVALUE('Proj Value Rank'[MinValue Range])
VAR selectedRangeMax = SELECTEDVALUE('Proj Value Rank'[MaxValue Range])
IF (
    HASONEVALUE ( 'Proj Value Rank'[MinValue Range] ),
    CALCULATE (
       SUM ( 'Proj Aggregation Test'[Sum NTSLC] ),
       FILTER('Proj Aggregation Test',
          'Proj Aggregation Test'[Sum NTSLC] =&amp;gt; selectedRangeMin &amp;amp;&amp;amp;
          'Proj Aggregation Test'[Sum NTSLC] &amp;lt; selectedRangeMax
       )
    )      
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Oct 2022 14:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Row-by-Row-and-Bin-values-into-groups/m-p/2837214#M90549</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-10-12T14:50:38Z</dc:date>
    </item>
  </channel>
</rss>

