<?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: how to sum fo the prepared measure in the total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311107#M57434</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this way but it doesn't sum correctly:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 14:55:47 GMT</pubDate>
    <dc:creator>mic_rys</dc:creator>
    <dc:date>2022-01-31T14:55:47Z</dc:date>
    <item>
      <title>how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2310902#M57432</link>
      <description>&lt;P&gt;Hi, I have a problem with total in my prepared measure, I know that need to user hasonevalue function but my all ideas doesn't work.&lt;/P&gt;&lt;P&gt;My measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Fill blank rows 2 =&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;VAR PrevDate =&lt;/DIV&gt;&lt;DIV&gt;MAXX (&lt;/DIV&gt;&lt;DIV&gt;FILTER (&lt;/DIV&gt;&lt;DIV&gt;ALL ( 'Date' ),&lt;/DIV&gt;&lt;DIV&gt;'Date'[Date] &amp;lt; MAX ( 'Date'[Date])&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;&amp;amp; NOT ( ISBLANK ( [Fill blank rows first] ) )&lt;/DIV&gt;&lt;DIV&gt;),&lt;/DIV&gt;&lt;DIV&gt;'Date'[Date]&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;VAR LastValueFill =&lt;/DIV&gt;&lt;DIV&gt;CALCULATE (&lt;/DIV&gt;&lt;DIV&gt;[Measure1],&lt;/DIV&gt;&lt;DIV&gt;FILTER ( ALL ( 'Date'[Date] ), 'Date'[Date] = PrevDate )&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;VAR FillEmpty = if( ISBLANK([Fill blank rows first]), LastValueFill,[Fill blank rows first] )&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;return&lt;/DIV&gt;&lt;DIV&gt;IF (&lt;/DIV&gt;&lt;DIV&gt;HASONEVALUE ( Clients[Code] ),&lt;/DIV&gt;&lt;DIV&gt;FillEmpty&lt;/DIV&gt;&lt;DIV&gt;,BLANK()&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In short, this measure inserts the last values if blank.&lt;/DIV&gt;&lt;DIV&gt;Instead of Blank in Total I need a sum of the&amp;nbsp;FillEmpty.&lt;/DIV&gt;&lt;DIV&gt;Result:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jan 2022 13:50:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2310902#M57432</guid>
      <dc:creator>mic_rys</dc:creator>
      <dc:date>2022-01-31T13:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311062#M57433</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="112526" data-lia-user-login="mic_rys" class="lia-mention lia-mention-user"&gt;mic_rys&lt;/a&gt; , Change the return like &lt;/P&gt;
&lt;P&gt;sumx( addcolumns(summarize( Table, Clients[Code] , 'Date'[Year Month]), "_1", calculate(IF ( HASONEVALUE ( Clients[Code] ), FillEmpty ,BLANK() ))), [_1])&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 14:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311062#M57433</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-31T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311107#M57434</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this way but it doesn't sum correctly:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 14:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311107#M57434</guid>
      <dc:creator>mic_rys</dc:creator>
      <dc:date>2022-01-31T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311331#M57449</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="112526" data-lia-user-login="mic_rys" class="lia-mention lia-mention-user"&gt;mic_rys&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;can you simply keep this in return&lt;/P&gt;
&lt;P&gt;sumx( addcolumns(summarize( Table, Clients[Code] , 'Date'[Year Month]), "_1", calculate(IF ( HASONEVALUE ( Clients[Code] ), FillEmpty ,BLANK() ))), [_1])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2311331#M57449</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-31T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2312563#M57535</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It's live connection so it not easy to simplify the data but I can show part of the model which is used.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The result of your code is:&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2312563#M57535</guid>
      <dc:creator>mic_rys</dc:creator>
      <dc:date>2022-02-01T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2327247#M58318</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="112526" data-lia-user-login="mic_rys" class="lia-mention lia-mention-user"&gt;mic_rys&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to the description, it seems like a common measure total level calculation issues. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that is the case, I'd like to suggest you refer to the following link to know how to handle this scenario.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_self"&gt;Measure Totals, The Final Word&lt;/A&gt;&amp;nbsp;&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>Wed, 09 Feb 2022 05:40:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2327247#M58318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T05:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum fo the prepared measure in the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2336942#M58900</link>
      <description>&lt;P&gt;HI, thanks, it helped somewhat! I added extra measure and now it summarizes well!&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Last value by customer with filled values = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_wynikGrand&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GROUPBY&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;Tasks&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Clients[Code]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[YearMonth]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Filled values]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_wynikGrand&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Feb 2022 12:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-sum-fo-the-prepared-measure-in-the-total/m-p/2336942#M58900</guid>
      <dc:creator>mic_rys</dc:creator>
      <dc:date>2022-02-14T12:53:47Z</dc:date>
    </item>
  </channel>
</rss>

