<?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: Group by several criteria and take oldest available value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3250779#M119936</link>
    <description>&lt;P&gt;Hello v-zhangti,&lt;BR /&gt;&lt;BR /&gt;Sorry for beeing silent for a long time. I wasn't able to log in recently.&lt;BR /&gt;Your advice helped me solved this problem.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A veeery big thank you for this support!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 10:03:26 GMT</pubDate>
    <dc:creator>PawelTr</dc:creator>
    <dc:date>2023-05-24T10:03:26Z</dc:date>
    <item>
      <title>Group by several criteria and take oldest available value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3229009#M118415</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I'm struggling with DAX code.&lt;BR /&gt;&lt;BR /&gt;To describe the problem, look at the picture below. I have many rows with the data, separated by invoice month, country, section, supplier type. In next four rows are some values, let's focus as example on Sum_selling_price&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to create calculated column, which always take value for first available month(here it will be April) and assign in all 12 rows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My current code, where I failed looks as provided&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I faced "circular dependency".&lt;BR /&gt;&lt;BR /&gt;I would be really grateful for any help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 14:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3229009#M118415</guid>
      <dc:creator>PawelTr</dc:creator>
      <dc:date>2023-05-10T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group by several criteria and take oldest available value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3232273#M118660</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="535538" data-lia-user-login="PawelTr" class="lia-mention lia-mention-user"&gt;PawelTr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selling price = 
Var _firstdate=CALCULATE(MIN('Table'[INVOICE_MONTH_END]),ALL('Table'))
Return
CALCULATE(SUM('Table'[Sum_selling_price]),FILTER('Table',[INVOICE_MONTH_END]=_firstdate))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&amp;nbsp;If not, please provide more information.&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:55:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3232273#M118660</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-05-12T06:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Group by several criteria and take oldest available value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3250779#M119936</link>
      <description>&lt;P&gt;Hello v-zhangti,&lt;BR /&gt;&lt;BR /&gt;Sorry for beeing silent for a long time. I wasn't able to log in recently.&lt;BR /&gt;Your advice helped me solved this problem.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A veeery big thank you for this support!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 10:03:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by-several-criteria-and-take-oldest-available-value/m-p/3250779#M119936</guid>
      <dc:creator>PawelTr</dc:creator>
      <dc:date>2023-05-24T10:03:26Z</dc:date>
    </item>
  </channel>
</rss>

