<?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 merge rows using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3239020#M119123</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have purchase order with receipt date and expected date. Now I am trying to evaulate supplier's devliery performace.&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;At the end I would like to count as below using DAX, rather than sorting them out in power query using Grouping rows.&lt;/P&gt;&lt;P&gt;How can I merge rows using Dax and extract as below?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Each column definition as below&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OnTime(any)&lt;UL&gt;&lt;LI&gt;any delivery arrived before promised date regardless of partial or full amount and quality of part.&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_3 and PDN_2 as well as PDN_1.&lt;/LI&gt;&lt;LI&gt;PO222, PDN_5 and PDN_4&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OnTime&lt;UL&gt;&lt;LI&gt;any delivery arrived before promised date regardless of partial or full amount - but should be a good part&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_3 and PDN_2 as well as PDN_1&lt;/LI&gt;&lt;LI&gt;PO222, none (because it becomes negative receipt quantity, ended up with backorder qty of 1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OnTimeInFull&lt;UL&gt;&lt;LI&gt;any delivery arrived before promised date and in a full amount with correct part&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_2 and PDN_1&lt;/LI&gt;&lt;LI&gt;PO222, none&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Late&lt;UL&gt;&lt;LI&gt;any delivery arrived after promised date&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_3 (because it was partial deliver and balance arrived after promised date)&lt;/LI&gt;&lt;LI&gt;PO222, PDN_4 and PDN_5&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;QualityError&lt;UL&gt;&lt;LI&gt;any delivery with incorrect (poor) quality part&lt;/LI&gt;&lt;LI&gt;In this case, PO111, none&lt;/LI&gt;&lt;LI&gt;PO222, PDN_4 and PDN_5&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 23:53:29 GMT</pubDate>
    <dc:creator>dogburalHK82</dc:creator>
    <dc:date>2023-05-16T23:53:29Z</dc:date>
    <item>
      <title>merge rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3239020#M119123</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have purchase order with receipt date and expected date. Now I am trying to evaulate supplier's devliery performace.&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;At the end I would like to count as below using DAX, rather than sorting them out in power query using Grouping rows.&lt;/P&gt;&lt;P&gt;How can I merge rows using Dax and extract as below?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Each column definition as below&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OnTime(any)&lt;UL&gt;&lt;LI&gt;any delivery arrived before promised date regardless of partial or full amount and quality of part.&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_3 and PDN_2 as well as PDN_1.&lt;/LI&gt;&lt;LI&gt;PO222, PDN_5 and PDN_4&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OnTime&lt;UL&gt;&lt;LI&gt;any delivery arrived before promised date regardless of partial or full amount - but should be a good part&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_3 and PDN_2 as well as PDN_1&lt;/LI&gt;&lt;LI&gt;PO222, none (because it becomes negative receipt quantity, ended up with backorder qty of 1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OnTimeInFull&lt;UL&gt;&lt;LI&gt;any delivery arrived before promised date and in a full amount with correct part&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_2 and PDN_1&lt;/LI&gt;&lt;LI&gt;PO222, none&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Late&lt;UL&gt;&lt;LI&gt;any delivery arrived after promised date&lt;/LI&gt;&lt;LI&gt;In this case, PO111, PDN_3 (because it was partial deliver and balance arrived after promised date)&lt;/LI&gt;&lt;LI&gt;PO222, PDN_4 and PDN_5&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;QualityError&lt;UL&gt;&lt;LI&gt;any delivery with incorrect (poor) quality part&lt;/LI&gt;&lt;LI&gt;In this case, PO111, none&lt;/LI&gt;&lt;LI&gt;PO222, PDN_4 and PDN_5&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 23:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3239020#M119123</guid>
      <dc:creator>dogburalHK82</dc:creator>
      <dc:date>2023-05-16T23:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3239413#M119146</link>
      <description>&lt;P&gt;Try&amp;nbsp;Calculated column in your table&amp;nbsp; with IF statement for your wanted status, like INT(Promised Date - Delivery Date. I hope this help.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 05:39:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3239413#M119146</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-05-17T05:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3241246#M119262</link>
      <description>&lt;P&gt;not sure how I can acheive using calculated column&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 01:40:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3241246#M119262</guid>
      <dc:creator>dogburalHK82</dc:creator>
      <dc:date>2023-05-18T01:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: merge rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3241554#M119281</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558746" data-lia-user-login="dogburalHK82" class="lia-mention lia-mention-user"&gt;dogburalHK82&lt;/a&gt;&amp;nbsp;check below official Microsoft link. On Step 5 there is example how to use IF function to get some of your status.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-calculated-columns" target="_self"&gt;https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-calculated-columns&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 05:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/merge-rows-using-DAX/m-p/3241554#M119281</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-05-18T05:28:37Z</dc:date>
    </item>
  </channel>
</rss>

