<?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: Translate excel RATE function to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2606766#M75487</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="111616" data-lia-user-login="juanmontes" class="lia-mention lia-mention-user"&gt;juanmontes&lt;/a&gt; , is this not one financial function supported?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=9VYqbj2h4zE" target="_blank"&gt;https://www.youtube.com/watch?v=9VYqbj2h4zE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=6oaSdjZ_FLQ" target="_blank"&gt;https://www.youtube.com/watch?v=6oaSdjZ_FLQ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 12:00:04 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-06-28T12:00:04Z</dc:date>
    <item>
      <title>Translate excel RATE function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2606533#M75477</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to use RATE function in DAX&amp;nbsp; like in Excel, but without success.&amp;nbsp; Some explanation about as I want to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've the following data :&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;Could you help me to reproduce this function, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 10:38:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2606533#M75477</guid>
      <dc:creator>juanmontes</dc:creator>
      <dc:date>2022-06-28T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Translate excel RATE function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2606766#M75487</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="111616" data-lia-user-login="juanmontes" class="lia-mention lia-mention-user"&gt;juanmontes&lt;/a&gt; , is this not one financial function supported?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=9VYqbj2h4zE" target="_blank"&gt;https://www.youtube.com/watch?v=9VYqbj2h4zE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=6oaSdjZ_FLQ" target="_blank"&gt;https://www.youtube.com/watch?v=6oaSdjZ_FLQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 12:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2606766#M75487</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-06-28T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Translate excel RATE function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2613873#M75874</link>
      <description>&lt;P&gt;Please follow these steps:&lt;/P&gt;&lt;P&gt;1. Pivot the table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;2. Then change the data type of these values&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Create a Measure, here is the DAX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FIELD =

VAR _a =

    SWITCH (

        MAX ( [Periodicity] ),

        "Monthly", 1,

        "Quarterly", 3,

        "Semiannual", 2,

        12

    )

VAR _b =

    SWITCH (

        MAX ( [Periodicity] ),

        "Monthly", 12,

        "Quarterly", 4,

        "Semiannual", 2,

        1

    )

VAR _r =

    RATE (

        DIVIDE ( MAX ( [Duration] ), _a ),

        MAX ( [Base] ) * MAX ( [COEFF] ),

        - MAX ( [Base] ),

        MAX ( [Residual Value] ),

        MAX ( [Arrear -&amp;gt;0 / Advance -&amp;gt; 1] )

    )

RETURN

IF ( ISBLANK ( MAX ( [COEFF] ) ), 0, _b * _r )&lt;/LI-CODE&gt;&lt;P&gt;4.&amp;nbsp;Change the format of the measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;5. Apply it to a card&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jianbo Li&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 09:36:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-excel-RATE-function-to-DAX/m-p/2613873#M75874</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-07-01T09:36:44Z</dc:date>
    </item>
  </channel>
</rss>

