<?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: Wrong total when combining two measures based on IF condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353053#M59809</link>
    <description>&lt;P&gt;Hi Jos! IT IS WORKING &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you so much for such a quick response!!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 09:50:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-22T09:50:46Z</dc:date>
    <item>
      <title>Wrong total when combining two measures based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2352950#M59803</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to combine to measures -&amp;nbsp;&lt;STRONG&gt;Measure 1&amp;nbsp;&lt;/STRONG&gt;&amp;amp;&amp;nbsp;&lt;STRONG&gt;Measure 2 -&amp;nbsp;&lt;/STRONG&gt;based on what date it is. This is &lt;STRONG&gt;Measure 3&lt;/STRONG&gt;. I want to show Measure 1's value for the days up until today, and Measure 2's value for today and forward. &lt;U&gt;My current solution gives med the wrong total.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DAX code right now:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 3=&lt;BR /&gt;IF(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MAX([DATE]) &amp;lt; TODAY(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [MEASURE 1],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; [MEASURE 2]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see I get the same total for Measure 3 as Measure 2. It should be 51, not 76.&lt;/P&gt;&lt;P&gt;FYI, I only have data in my columns to create Measure 1 and Measure 2 as they are in the picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on what to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Ella&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:09:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2352950#M59803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-22T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total when combining two measures based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353018#M59807</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MyMeasure :=
VAR MyTable =
    SUMMARIZE(
        'Table',
        'Table'[DATE],
        "Value", IF( 'Table'[DATE] &amp;lt; TODAY(), [MEASURE 1], [MEASURE 2] )
    )
RETURN
    IF(
        ISFILTERED( 'Table'[DATE] ),
        IF( MAX( 'Table'[DATE] ) &amp;lt; TODAY(), [MEASURE 1], [MEASURE 2] ),
        SUMX( MyTable, [Value] )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353018#M59807</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2022-02-22T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total when combining two measures based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353053#M59809</link>
      <description>&lt;P&gt;Hi Jos! IT IS WORKING &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you so much for such a quick response!!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353053#M59809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-22T09:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total when combining two measures based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353119#M59813</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 10:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-total-when-combining-two-measures-based-on-IF-condition/m-p/2353119#M59813</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2022-02-22T10:09:55Z</dc:date>
    </item>
  </channel>
</rss>

