Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Best Regards
You don't need identifiers. You need to search for the last occurence of the Line Feed character in your text - character code 10 as I described above.
Post some sample data.
Dear Ibendlin,
Can you please provide me the code ( add custome column with M Code )
Yes, right after you provide sample data.
Here's how it would look like:
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Last Line", each Text.AfterDelimiter([Multi Row Text Column],Character.FromNumber(10),{1, RelativePosition.FromEnd}))
Note: you can also use "#(lf)" if you want code that is harder to read.
Kindly provide your e mail id if possible or let me know how to share the sample PBIX file
Kindly provide your e mail id if possible so that I can send you sample pbix through we transfer
Easiest would be to create another column in Power Query (during data load) that uses
Text.PositionOf - PowerQuery M | Microsoft Docs
to find the last carriage return or line feed (or the absence of it) and then use Text.Last to get the string after it (or the entire string if it is only a single line).
Doing this in DAX is also possible but a bit more convoluted.
Thank you for replying , but all text are very dynamic , so I do not have any identifier , all I need to extract last couple of line s from last, anyway kindly provide some example so that I can try further, currently I have only one Identifier "Mar" (i'e'that's the only common text ) from next month it will be "April"
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |