<?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: Firstdate producing a results with more than one date for a customer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792322#M4580</link>
    <description>&lt;P&gt;Hi, thanks for the quick response. Tried it but it's still giving me the same value it's adding all payments made by the customers&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If i put the actual date of transaction im geting this, yet i only want that 90 which was on a monday 1 october 2018&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Sep 2019 08:14:37 GMT</pubDate>
    <dc:creator>Tendai</dc:creator>
    <dc:date>2019-09-14T08:14:37Z</dc:date>
    <item>
      <title>Firstdate producing a results with more than one date for a customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792307#M4578</link>
      <description>&lt;P&gt;Hi, may you kindly help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My firstdate function is not producing my intended result.I want to see the first date the customer started to pay his monthly premiums and the amount the customer paid. But if I use firstdate function it's giving me all the dates that the payment was made and in so doing it's adding up all the amount paid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the syntax I'm using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;First Payment Date = FIRSTDATE('macroinsure col_trans_log'[tran_date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;So that tran_amount is an addition of all the transaction made by that client but what i require is transaction amount on that specified first date.Which is 90&amp;nbsp; see picture below&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 06:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792307#M4578</guid>
      <dc:creator>Tendai</dc:creator>
      <dc:date>2019-09-14T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Firstdate producing a results with more than one date for a customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792308#M4579</link>
      <description>&lt;P&gt;&amp;nbsp;You need to write and measure that will extract the transaction amount for the first date. Something like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First Payment Amt = Calculate(sum(table[amount]),FIRSTDATE('macroinsure col_trans_log'[tran_date]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 07:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792308#M4579</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2019-09-14T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Firstdate producing a results with more than one date for a customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792322#M4580</link>
      <description>&lt;P&gt;Hi, thanks for the quick response. Tried it but it's still giving me the same value it's adding all payments made by the customers&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If i put the actual date of transaction im geting this, yet i only want that 90 which was on a monday 1 october 2018&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 08:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792322#M4580</guid>
      <dc:creator>Tendai</dc:creator>
      <dc:date>2019-09-14T08:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Firstdate producing a results with more than one date for a customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792376#M4582</link>
      <description>&lt;P&gt;This is actually made more complex because you are using a single table. I think this is the issue. Try this (I haven’t tested as I am not at my pc).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First Payment Amt = Calculate(sum(table[amount]),all(‘macroinsure col_trans_log'),FIRSTDATE('macroinsure col_trans_log'[tran_date]),values(‘macroinsure col_trans_log'[Policy_No]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 11:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/792376#M4582</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2019-09-14T11:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Firstdate producing a results with more than one date for a customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/793196#M4611</link>
      <description>&lt;P&gt;I think let me explain what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table for Funeral policies. The table contains Policy_number, Customer_name, monthly premium and Agent name who sold the policy. The Agent is paid 100% of the first amount paid by the customer as commission and he only gets the first payment only. So I need to come up with an automated report with first payment date as a slicer, for which if i click august it only gives first payments for august and total commission for the Agent for all the policies he sold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Policy Number&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;customer name&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Premium Amount&lt;/TD&gt;&lt;TD&gt;Transaction Date&lt;/TD&gt;&lt;TD&gt;Agent Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol1&lt;/TD&gt;&lt;TD&gt;Tendai Mavhunga&lt;/TD&gt;&lt;TD&gt;97&lt;/TD&gt;&lt;TD&gt;12/2/2018&lt;/TD&gt;&lt;TD&gt;Andrew&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol343&lt;/TD&gt;&lt;TD&gt;Charles Jones&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;2/23/2019&lt;/TD&gt;&lt;TD&gt;Clara&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol346&lt;/TD&gt;&lt;TD&gt;HLABALINGENE&lt;/TD&gt;&lt;TD&gt;510&lt;/TD&gt;&lt;TD&gt;5/16/2018&lt;/TD&gt;&lt;TD&gt;Andrew&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol345&lt;/TD&gt;&lt;TD&gt;ISSA&lt;/TD&gt;&lt;TD&gt;97&lt;/TD&gt;&lt;TD&gt;7/22/2019&lt;/TD&gt;&lt;TD&gt;Clara&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol346&lt;/TD&gt;&lt;TD&gt;HLABALINGENE&lt;/TD&gt;&lt;TD&gt;510&lt;/TD&gt;&lt;TD&gt;8/23/2018&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol347&lt;/TD&gt;&lt;TD&gt;MUGABE&lt;/TD&gt;&lt;TD&gt;89&lt;/TD&gt;&lt;TD&gt;9/16/2019&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pol343&lt;/TD&gt;&lt;TD&gt;Charles Jones&lt;/TD&gt;&lt;TD&gt;69&lt;/TD&gt;&lt;TD&gt;9/16/2019&lt;/TD&gt;&lt;TD&gt;Clara&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I used the &lt;STRONG&gt;Firstdate&lt;/STRONG&gt;(Transaction Date) to get the first payment for the customer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for agent commission, I used &lt;STRONG&gt;SUM(Premium Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I was hoping that if I select &lt;STRONG&gt;August&lt;/STRONG&gt; on &lt;STRONG&gt;first payment date&lt;/STRONG&gt; it will only give first payments in&lt;STRONG&gt;&amp;nbsp;August however&lt;/STRONG&gt;&amp;nbsp;it's adding all payments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/793196#M4611</guid>
      <dc:creator>Tendai</dc:creator>
      <dc:date>2019-09-16T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Firstdate producing a results with more than one date for a customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/793692#M4630</link>
      <description>&lt;P&gt;DAX is more complicated than Excel in that the formulas depend on the data model (table structure, relationships etc).&amp;nbsp; I suggest you produce a sample model with non-sensitive data that you can share.&amp;nbsp; Someone will then help you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 22:08:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Firstdate-producing-a-results-with-more-than-one-date-for-a/m-p/793692#M4630</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2019-09-16T22:08:17Z</dc:date>
    </item>
  </channel>
</rss>

