<?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 Need help on Sequence number in same column and Horizontal records in same row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4151383#M164967</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Please find the below screenshot of sample data, need help on the "Horizontal records" in a same row and "Sequence number" for different Insureds numbers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Below are the requirements need to work on the DAX calculated column: "Upload ID", "Policyholder Name" and "InsuredS". Please help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Under "UploadId" and "Policyholder Name" In case multiple values are present for a single Application Number, list all items need to display horizontally, separated by a space. Maximum of 20 characters allowed, in case this limit will be exceeded display "..." at the end&lt;/P&gt;&lt;P&gt;2. For "Insured Branch Number" new calculated column display a sequence of numbers starting from "1" in case multiple insureds are present within the policy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected OUTPUT: Here is the OUTPUT need to display in Power BI with the help of sample data. Please help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Sample Data Reocrds: Here is the sample records can work for this expected OUTPUT.&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Policy Product Type Application Number Image Upload Date and Time Upload ID Policyholder Client ID Policyholder Name InsuredS&lt;BR /&gt;9000123 GH 30330330311 2024/7/03 13:00:02 bheemvi 7185244885 bheemvi 8541224151&lt;BR /&gt;1236121 RT 77879174306 2024/7/03 13:00:02 surfati 5535470245 surfati 7563424173&lt;BR /&gt;3954848 MM 40760081519 2024/7/03 13:29:30 kudou 7128024728 kudou 5535470245&lt;BR /&gt;3954848 MM 40760081519 2024/7/03 13:29:30 raju 7128024728 raju 9641540351&lt;BR /&gt;3954848 MM 40760081519 2024/7/03 13:29:30 venky 7128024728 venky 8541224151&lt;BR /&gt;6864730 CN 40510010297 2024/7/03 14:02:99 suresh 8541224151 suresh 7563424173&lt;BR /&gt;9000520 BO 40760081311 2024/7/03 14:02:99 naresh 7563424173 naresh 5535470245&lt;BR /&gt;1236121 RT 77879174306 2024/7/03 15:00:02 gopal 5535470245 surfati 9873424173&lt;/P&gt;</description>
    <pubDate>Sun, 15 Sep 2024 19:11:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-15T19:11:17Z</dc:date>
    <item>
      <title>Need help on Sequence number in same column and Horizontal records in same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4151383#M164967</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Please find the below screenshot of sample data, need help on the "Horizontal records" in a same row and "Sequence number" for different Insureds numbers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Below are the requirements need to work on the DAX calculated column: "Upload ID", "Policyholder Name" and "InsuredS". Please help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Under "UploadId" and "Policyholder Name" In case multiple values are present for a single Application Number, list all items need to display horizontally, separated by a space. Maximum of 20 characters allowed, in case this limit will be exceeded display "..." at the end&lt;/P&gt;&lt;P&gt;2. For "Insured Branch Number" new calculated column display a sequence of numbers starting from "1" in case multiple insureds are present within the policy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected OUTPUT: Here is the OUTPUT need to display in Power BI with the help of sample data. Please help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Sample Data Reocrds: Here is the sample records can work for this expected OUTPUT.&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Policy Product Type Application Number Image Upload Date and Time Upload ID Policyholder Client ID Policyholder Name InsuredS&lt;BR /&gt;9000123 GH 30330330311 2024/7/03 13:00:02 bheemvi 7185244885 bheemvi 8541224151&lt;BR /&gt;1236121 RT 77879174306 2024/7/03 13:00:02 surfati 5535470245 surfati 7563424173&lt;BR /&gt;3954848 MM 40760081519 2024/7/03 13:29:30 kudou 7128024728 kudou 5535470245&lt;BR /&gt;3954848 MM 40760081519 2024/7/03 13:29:30 raju 7128024728 raju 9641540351&lt;BR /&gt;3954848 MM 40760081519 2024/7/03 13:29:30 venky 7128024728 venky 8541224151&lt;BR /&gt;6864730 CN 40510010297 2024/7/03 14:02:99 suresh 8541224151 suresh 7563424173&lt;BR /&gt;9000520 BO 40760081311 2024/7/03 14:02:99 naresh 7563424173 naresh 5535470245&lt;BR /&gt;1236121 RT 77879174306 2024/7/03 15:00:02 gopal 5535470245 surfati 9873424173&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 19:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4151383#M164967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-15T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Sequence number in same column and Horizontal records in same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4151440#M164969</link>
      <description>&lt;P&gt;Create two calculated columns.&lt;BR /&gt;&lt;BR /&gt;Upload Id :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Upload_Id = 
CONCATENATEX (
    FILTER (
        '1',
        '1'[ Policyholder Client ID] = EARLIER ( '1'[ Policyholder Client ID] )
    ),
    '1'[ Upload ID],
    ",",
    '1'[ Image Upload Date and Time], DESC
)&lt;/LI-CODE&gt;&lt;P&gt;Insured Branch Number&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Insured Branch No = 

RANKX (
    FILTER (
        '1',
       '1'[ Policyholder Client ID] = EARLIER ( '1'[ Policyholder Client ID])
    ),
    '1'[ InsuredS],
    , 
    ASC,Dense
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 22:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4151440#M164969</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-09-15T22:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Sequence number in same column and Horizontal records in same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4155951#M165150</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;SachinNandanwar&amp;nbsp; for the quick reply and solution. I noticed one more point that needs to be added:&lt;/P&gt;
&lt;P&gt;We can create two columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Upload_Id = 
var _id=CONCATENATEX (
    FILTER (
        'Table',
        'Table'[Policyholder Client ID] = EARLIER ( 'Table'[Policyholder Client ID] )
    ),
    'Table'[Upload ID],
    " ",
    'Table'[Image Upload Date and Time], DESC
)
var _len=LEN(_id)
RETURN IF(_len&amp;gt;20,_id &amp;amp; "...",_id)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Insured Branch No = 

RANKX (
    FILTER (
        'Table',
       'Table'[Policyholder Client ID] = EARLIER ( 'Table'[Policyholder Client ID])
    ),
    'Table'[InsuredS],
    , 
    ASC,Dense
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 07:08:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Sequence-number-in-same-column-and-Horizontal/m-p/4155951#M165150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-18T07:08:01Z</dc:date>
    </item>
  </channel>
</rss>

