Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have below data
Name | ID | Age | Key(concatenated name and id) | Duplicate |
A | 6 | 12 | A6 | False |
A | 6 | 4 | A6 | True |
B | 1 | 5 | B1 | False |
C | 9 | 6 | C9 | False |
C | 9 | 2 | C9 | True |
D | 3 | 3 | D3 | False |
Not able to open link
Hi @Poornima2023,
Result
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTIDYkMjIOFophSrgxAzQQg5gZQAsSkQOxmChZyBTEuoSmdLFCEjhJALkGkMxS7GSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, ID = _t, Age = _t, Key = _t]),
GroupedRows = Table.Group(Source, {"Key"}, {{"All", each Table.RemoveColumns(Table.AddColumn(Table.AddIndexColumn(_, "Index", 0, 1), "Duplicate", (x)=> if x[Index] = 0 then false else true, type logical), {"Index"}), type table}}),
Combined = Table.Combine(GroupedRows[All])
in
Combined
will it work in power bi?
Its not working as my data is directquery mode