<?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: Interest Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323221#M58064</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thanks and much apperciate dear Tamer, I will try it and let you know.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 13:44:27 GMT</pubDate>
    <dc:creator>anwargabr</dc:creator>
    <dc:date>2022-02-07T13:44:27Z</dc:date>
    <item>
      <title>Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2321575#M58000</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help and ideas, I have the below data and wante to allocate the monthly interst to each mont, Is ther any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Loan Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;From&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt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p;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;$&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120.69&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 06 Feb 2022 10:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2321575#M58000</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2022-02-06T10:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2322221#M58020</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt; , refer to my blog and file, where I have done similar stuff&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-or-end-date/ba-p/1503785" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-or-end-date/ba-p/1503785&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 03:59:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2322221#M58020</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-07T03:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2322753#M58039</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;First you need to create a table that contains all the dates included in order to calculate the interest per each date. Let's call it "PerDate" table. You can use the following simple code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;PerDate = 
    CALENDAR ( 
        Min ( Loans[From] ),
        Max ( Loans[to] )
    ) ​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this table create a new month calculated cloumn:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Month = FORMAT ( DATE ( 1, MONTH ( PerDate[Date] ), 1 ) , "mmm" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then add another calculated column to calculate the average daily interest as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Interest = 
VAR CurrentDate = 'PerDate'[Date]
VAR CrrentLoans =
    FILTER (
        Loans,
        Loans[From] &amp;lt;= CurrentDate &amp;amp;&amp;amp;
            Loans[to] &amp;gt; CurrentDate
    )
VAR Result =
    CALCULATE ( 
        SUMX (
            CrrentLoans,
            DIVIDE ( Loans[Interest], Loans[Days] )
        )
    )
RETURN
Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, this code filters the loans table to include only the rows that include each date. Then it iterates over the filtered table to calculate the average interst per each day.&lt;BR /&gt;&lt;BR /&gt;Now you can simply create your measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Ineterst ($) = SUM ( PerDate[Interest] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create your report agregated by Month:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 09:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2322753#M58039</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-07T09:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323221#M58064</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thanks and much apperciate dear Tamer, I will try it and let you know.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:44:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323221#M58064</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2022-02-07T13:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323227#M58065</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;Thanks a lot my dear, will tyr to understand the file you've shared and apply it on my own file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323227#M58065</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2022-02-07T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323259#M58068</link>
      <description>&lt;P&gt;Most welcome. Please let me know if you need the Pbi file.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 14:01:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2323259#M58068</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-07T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2325792#M58224</link>
      <description>&lt;P&gt;Thanks Dear, I have followed your explanition and creat the Pbi, now if I want to change the interst DAX to reflect the below formula&amp;nbsp;&lt;BR /&gt;[@Amount]*[@Rate]/360*[@Days]&lt;BR /&gt;Is it applicable as a new column&amp;nbsp; or new measure?&lt;BR /&gt;also haow can we filter the result by laon number?&lt;BR /&gt;, the result should be exactly same below&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;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2325792#M58224</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2022-02-08T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2327213#M58316</link>
      <description>&lt;P&gt;Good Moring&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Check the file here&amp;nbsp;&lt;A href="https://www.dropbox.com/t/poTbyLxMZFOPDbpS" target="_blank" rel="noopener"&gt;https://www.dropbox.com/t/poTbyLxMZFOPDbpS&lt;/A&gt;&lt;BR /&gt;Not sure if I understand your equation or how you calculated the monthly interest in this table. However, if you need to slice by Loan number then you need to create a measure as calculated columns are no evaluated in the filter context rather in the row context of the iterated table.&lt;BR /&gt;&lt;BR /&gt;To filter the matrix by loan number you can either use the slicer or just click on the chart column. Also you can slice the chart by month by clicking on the month name in the matrix. Power Bi provides interactive visuals that can filter each other.&lt;BR /&gt;&lt;BR /&gt;If you have any question regarding the four measures and the two calculated columns in the file, please feel free to let me know. If you find my input hepful and fulfills your requirements, please kudo and mak as Accepted Solution.&amp;nbsp;&lt;BR /&gt;Thanks and have agreat day&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 05:35:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2327213#M58316</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-09T05:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2332195#M58639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you solved this question with tamerj1's&amp;nbsp;help? If you have solved the question,&amp;nbsp;&lt;U&gt;you can accept the answer helpful as the solution&lt;/U&gt;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt;&amp;nbsp;&lt;U&gt;share you method and accept it as solution&lt;/U&gt;, thanks for your contribution to improve Power BI.&lt;/P&gt;
&lt;P&gt;If you need more help, please let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 03:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2332195#M58639</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-02-11T03:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2335441#M58816</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for my late reply due to the reason I've explained to you in the private message.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've attached both excel and Pbi files here&lt;BR /&gt;&amp;nbsp;&lt;A href="https://www.dropbox.com/s/hcqqplt4b19sn3a/Test%20Ditribute%20days.rar?dl=0" target="_blank"&gt;https://www.dropbox.com/s/hcqqplt4b19sn3a/Test%20Ditribute%20days.rar?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the interest fromua and the manual calcaultion for days are all in the excel sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 20:21:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2335441#M58816</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2022-02-13T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2338561#M58966</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Now it is clear. It can be done with totally with DAX code but this is not the standard method. As long as you are making a transformation in your work you better follow a professional standard in your data. DAX in either power Bi or Power Pivot likes to deal with Columnar&amp;nbsp; unpivoted data. That means less columns more rows. In your example that means you need to have the inrest rate and the loan ammount for each bank/loan type for each date date. That would generate a table of more than 1000 rows. This is a an extremely small number of rows compared to what DAX can handle (milions of rows at a time). You can use either excel or power pivot to do that. I can help you out on this but it could be a good excersie for you.&amp;nbsp;&lt;BR /&gt;Next you need a proper Date table which I will help you with it. The rest is a peice of cake.&lt;BR /&gt;Try to unpivot your data and I will do something from side as well. Have a great day!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 05:18:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2338561#M58966</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-15T05:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2338687#M58968</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 06:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2338687#M58968</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2022-02-15T06:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2341810#M59116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Actually I changed my mind. It seems "at least to me" that it is easier to unpivot the data using dax. I explained earlier how to create a simple date table in DAX. Now all you need to do is to create a new table by CROSSJOIN both Date and Loans tables to generate all combinations then filter down only to the relivant ones as per below code.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FullData = 
VAR FullDateData =
    CROSSJOIN (
        'Date',
        Loans
    )
VAR ExistingDateData =
    FILTER ( 
        FullDateData,
        [Date] &amp;gt; [From]
            &amp;amp;&amp;amp; [Date] &amp;lt;= [to]
    )
RETURN
    ExistingDateData &lt;/LI-CODE&gt;&lt;P&gt;This is how the original data looks like&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;an this the how the unpivoted data looks like&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Next you create the relationship between Date and FullData tables.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Last you need to create your measure&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Interest Amount = 
SUMX ( 
    FullData,
    DIVIDE ( FullData[Amount] * FullData[Rate], 360, 0)
)&lt;/LI-CODE&gt;&lt;P&gt;The results 100% matchews the calculations in your excel sheet.&lt;/P&gt;&lt;P&gt;Here is the link to download the Pbi file&amp;nbsp;&lt;A href="https://www.dropbox.com/t/axD7brB2Czc8br8V" target="_blank"&gt;https://www.dropbox.com/t/axD7brB2Czc8br8V&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:07:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2341810#M59116</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-16T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2998036#M101100</link>
      <description>&lt;P&gt;Gents&lt;BR /&gt;&lt;BR /&gt;The above answer of Mr.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;nbsp; is great and helped me to satrt the dashboard. Howerver, another duplication issue came, let me explained:&lt;/P&gt;&lt;P&gt;first, I was preparing this sheet on monthly basis and add new column called "Reporting Month", then at end of each month I copy the data and past it for the new month and do the movemnent "add new loans or make settled loans Zero" so i can track and see the monthly movement of the outstanding loans during the year, it's ok to see the outstanding but when it comes to Interest Calculation, there are some loans booked for more than 30 days duplicated in the new DATE column created by CROSSJOIN table&lt;/P&gt;&lt;P&gt;so if loan ref 1 is from 1 Jan to 30 March, if I just use filter of Reporting Month "Jan", the loan will created 90 rows which is right but when I add Feb and March, it creted another 90 and so on.&lt;/P&gt;&lt;P&gt;If I created a unique number for the loan REF, Is there any DAX could be added to the table to remove any duplication in the created DATE column based on the unique REF, so for each loan REF no duplication DATE.&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>Tue, 03 Jan 2023 08:33:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2998036#M101100</guid>
      <dc:creator>anwargabr</dc:creator>
      <dc:date>2023-01-03T08:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Interest Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2998166#M101107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254519" data-lia-user-login="anwargabr" class="lia-mention lia-mention-user"&gt;anwargabr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry for the very late reply.&lt;/P&gt;
&lt;P&gt;Please refer to attached file for two options:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Adjusting the calculated table as follows&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Creating a measure directly without creating a calculated table.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Option&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 09:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Interest-Calculation/m-p/2998166#M101107</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-03T09:27:45Z</dc:date>
    </item>
  </channel>
</rss>

