<?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: I need to create a table with the first log, given some conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-table-with-the-first-log-given-some/m-p/3427327#M129895</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521555" data-lia-user-login="ScripTeapot_" class="lia-mention lia-mention-user"&gt;ScripTeapot_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can produce your required output by the following table dax formula.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In this simple data model, I separately created a calendar table (dimension table) and created a one to many relationship with the fact table because it is the best practice to do so.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I omit detailed explanations here, but instead, please find attached the link to the pbix file, and please let me know if anything is unclear.&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AlqFfzVTqicpnhUgCWVwcLa1GxAT?e=p8G1Qq" target="_blank"&gt;First purchase table.pbix&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 00:36:14 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2023-09-13T00:36:14Z</dc:date>
    <item>
      <title>I need to create a table with the first log, given some conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-table-with-the-first-log-given-some/m-p/3427294#M129894</link>
      <description>&lt;P&gt;Hellor&lt;/P&gt;&lt;P&gt;I need some help with this problem: I have many users and each one has made, at least, one purchase at some point, I need to know the date of the first purchase they have made to count the amount of first purchaces made in a month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OG table&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;User&lt;/TD&gt;&lt;TD&gt;purchase_date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2023-02-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2023-02-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2023-03-29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2023-02-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2022-12-23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2023-07-04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2023-09-15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First purchase table&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;user&lt;/TD&gt;&lt;TD&gt;"first_purchase"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2023-02-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2023-02-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2022-12-23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably this is not the best way to do this, if someone can guide me to something I can study to achieve this goal is very appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 23:44:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-table-with-the-first-log-given-some/m-p/3427294#M129894</guid>
      <dc:creator>ScripTeapot_</dc:creator>
      <dc:date>2023-09-12T23:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create a table with the first log, given some conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-table-with-the-first-log-given-some/m-p/3427327#M129895</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521555" data-lia-user-login="ScripTeapot_" class="lia-mention lia-mention-user"&gt;ScripTeapot_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can produce your required output by the following table dax formula.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In this simple data model, I separately created a calendar table (dimension table) and created a one to many relationship with the fact table because it is the best practice to do so.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I omit detailed explanations here, but instead, please find attached the link to the pbix file, and please let me know if anything is unclear.&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AlqFfzVTqicpnhUgCWVwcLa1GxAT?e=p8G1Qq" target="_blank"&gt;First purchase table.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 00:36:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-create-a-table-with-the-first-log-given-some/m-p/3427327#M129895</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-13T00:36:14Z</dc:date>
    </item>
  </channel>
</rss>

