<?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: Help with interest meassure over time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1011031#M12929</link>
    <description>&lt;P&gt;I'm struggling with this for days!&lt;/P&gt;&lt;P&gt;I write this meassure in Dax Studio:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR Paso1 =
    FILTER (
        SUMMARIZE (
            Calendario;
            Calendario[idxFecha];
            "R"; CALCULATE ( [Resultado Acumulado] - [Resultado]; Centros_Costo[CC] = "2500" )
        );
        [R] &amp;lt;&amp;gt; BLANK ()
    )
VAR Paso2 =
    ADDCOLUMNS (
        Paso1;
        "IntR"; [R]
            * IF ( [R] &amp;gt;= 0; [Tasa Pasiva]; [Tasa Activa] )
    )
VAR Paso3 =
    ADDCOLUMNS (
        Paso2;
        "Int2";
        VAR Suma =
            SUMX ( FILTER ( Paso2; [idxFecha] &amp;lt; EARLIER ( [idxFecha] ) ); [IntR] )
        RETURN
            Suma
                * IF ( Suma &amp;gt;= 0; [Tasa Pasiva]; [Tasa Activa] )
    )
VAR Paso4 =
    ADDCOLUMNS (
        Paso3;
        "Int3";
        VAR Suma =
            SUMX ( FILTER ( Paso3; [idxFecha] &amp;lt; EARLIER ( [idxFecha] ) ); [Int2] )
        RETURN
            Suma
                * IF ( Suma &amp;gt;= 0; [Tasa Pasiva]; [Tasa Activa] )
    )
VAR Paso5 =
    ADDCOLUMNS ( Paso4; "IntTotal"; [IntR] + [Int2] + [Int3] )
RETURN
    Paso5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[IdxFecha] = Year * 100 + Day&lt;/P&gt;&lt;P&gt;This are the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This are correct results for [IntTotal].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wat go back to Power BI and....&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So, the total is correct, but I lost my data lineage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The meassure [Interes] is all the code at first, but the last line change to SUMX( Paso5; [IntTotal] ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2020 21:09:41 GMT</pubDate>
    <dc:creator>jotapece</dc:creator>
    <dc:date>2020-04-06T21:09:41Z</dc:date>
    <item>
      <title>Help with interest meassure over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1000715#M12672</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I have a bad time trying to get that DAX meassure and I need a hand so, I have this data and calcs in excel:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The meassure I want to get is [Interest Total].&lt;/P&gt;&lt;P&gt;[Interest Total] = [Interest1] + [Interest2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Interest1] =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;(The SI function in IF function in spanish).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Interest2] =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Note: [Interest2] always SUM all the previous interest (1 and 2). Then affect with correspond rate to get the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Year - Month]: is column in the calendar table with all the consecutive dates.&lt;/P&gt;&lt;P&gt;[Accumulated Profit], [Active Rate] and [Passive Rate]&amp;nbsp;are a meassures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could calculate [Interest1] in a meassure (thinking in auxiliar meassure to get the total), but I can't figure out how get [Interest2)].&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 13:25:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1000715#M12672</guid>
      <dc:creator>jotapece</dc:creator>
      <dc:date>2020-03-31T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with interest meassure over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1000819#M12678</link>
      <description>&lt;P&gt;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 14:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1000819#M12678</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-31T14:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with interest meassure over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1011031#M12929</link>
      <description>&lt;P&gt;I'm struggling with this for days!&lt;/P&gt;&lt;P&gt;I write this meassure in Dax Studio:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR Paso1 =
    FILTER (
        SUMMARIZE (
            Calendario;
            Calendario[idxFecha];
            "R"; CALCULATE ( [Resultado Acumulado] - [Resultado]; Centros_Costo[CC] = "2500" )
        );
        [R] &amp;lt;&amp;gt; BLANK ()
    )
VAR Paso2 =
    ADDCOLUMNS (
        Paso1;
        "IntR"; [R]
            * IF ( [R] &amp;gt;= 0; [Tasa Pasiva]; [Tasa Activa] )
    )
VAR Paso3 =
    ADDCOLUMNS (
        Paso2;
        "Int2";
        VAR Suma =
            SUMX ( FILTER ( Paso2; [idxFecha] &amp;lt; EARLIER ( [idxFecha] ) ); [IntR] )
        RETURN
            Suma
                * IF ( Suma &amp;gt;= 0; [Tasa Pasiva]; [Tasa Activa] )
    )
VAR Paso4 =
    ADDCOLUMNS (
        Paso3;
        "Int3";
        VAR Suma =
            SUMX ( FILTER ( Paso3; [idxFecha] &amp;lt; EARLIER ( [idxFecha] ) ); [Int2] )
        RETURN
            Suma
                * IF ( Suma &amp;gt;= 0; [Tasa Pasiva]; [Tasa Activa] )
    )
VAR Paso5 =
    ADDCOLUMNS ( Paso4; "IntTotal"; [IntR] + [Int2] + [Int3] )
RETURN
    Paso5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[IdxFecha] = Year * 100 + Day&lt;/P&gt;&lt;P&gt;This are the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This are correct results for [IntTotal].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wat go back to Power BI and....&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So, the total is correct, but I lost my data lineage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The meassure [Interes] is all the code at first, but the last line change to SUMX( Paso5; [IntTotal] ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 21:09:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-interest-meassure-over-time/m-p/1011031#M12929</guid>
      <dc:creator>jotapece</dc:creator>
      <dc:date>2020-04-06T21:09:41Z</dc:date>
    </item>
  </channel>
</rss>

