<?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: TOTAL VALUE CALCULATION - WRONG in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781158#M87015</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444169" data-lia-user-login="luizahenriques" class="lia-mention lia-mention-user"&gt;luizahenriques&lt;/a&gt;&amp;nbsp;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 14:56:41 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-09-20T14:56:41Z</dc:date>
    <item>
      <title>TOTAL VALUE CALCULATION - WRONG</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781119#M87013</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear colleagues,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a problem with de total value. The column "Primeiros Caracteres" is from a dimension table and the other colums below are measures related to this table. My problem is on last column (CountTipodeCriterioAlterado) that is calculating very well (1 to Items that changed from EX to PQ or from PQ to EX and 0 to same Crtiério (PQ to PQ and EX to EX). But i need to get the sum of this number (All Items that had chaged), but the total shows 0, not the sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The formulas are below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CountTipodeCritérioAlterado = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[TipoCritériodCicloAtual]&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;"PQ"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;[TipoCritériodCicloAnterior]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"EX"&lt;/SPAN&gt;&lt;SPAN&gt; ,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[TipoCritériodCicloAtual]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&l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lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for helping&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:43:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781119#M87013</guid>
      <dc:creator>luizahenriques</dc:creator>
      <dc:date>2022-09-20T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL VALUE CALCULATION - WRONG</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781158#M87015</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444169" data-lia-user-login="luizahenriques" class="lia-mention lia-mention-user"&gt;luizahenriques&lt;/a&gt;&amp;nbsp;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:56:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781158#M87015</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-20T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL VALUE CALCULATION - WRONG</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781204#M87018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444169" data-lia-user-login="luizahenriques" class="lia-mention lia-mention-user"&gt;luizahenriques&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;CountTipodeCritérioAlterado =
SUMX (
    VALUES ( 'Table'[Premeirios caracteres] ),
    VAR Actual = [TipoCritériodCicloAtual]
    VAR Anterior = [TipoCritériodCicloAnterior]
    RETURN
        IF (
            Actual = "PQ"
                &amp;amp;&amp;amp; Anterior = "EX",
            1,
            IF (
                Actual = BLANK (),
                0,
                IF (
                    Anterior = BLANK (),
                    0,
                    IF (
                        Actual = "EX"
                            &amp;amp;&amp;amp; Anterior = "EX",
                        0,
                        IF ( Actual = "PQ" &amp;amp;&amp;amp; Anterior = "PQ", 0 )
                    )
                )
            )
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTAL-VALUE-CALCULATION-WRONG/m-p/2781204#M87018</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-20T15:05:46Z</dc:date>
    </item>
  </channel>
</rss>

