Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hey everyone i'm new to powerbi and got stuck in a stiuation
the data i've is
And the result i want is
Solved! Go to Solution.
See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUXL0BRJRQGxkYGSoa2Cka2gEEnVyVorVwaciPDjYBazECchxASlxhCsx1TU0BnIiIqPAKpyBbFQFJhAFjuFQM3CqcHL0C/WOBKtxAcmDiCBkp5iCnBICMcUVagqGWyMiQpRiYwE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Designation = _t, #"Manager Name" = _t, Date = _t, #"Client name" = _t]),
#"Grouped Rows" = Table.Group(Source, {"Name", "Designation", "Manager Name", "Date"}, {{"Client name", each Text.Combine([Client name],","), type nullable text}}),
Custom1 = Table.SplitColumn(#"Grouped Rows", "Client name", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), List.Transform({1..List.Max(Table.AddColumn(#"Grouped Rows", "Temp", each List.Count(Text.Split([Client name],",")))[Temp])},each "Client name." & Number.ToText(_)))
in
Custom1
See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUXL0BRJRQGxkYGSoa2Cka2gEEnVyVorVwaciPDjYBazECchxASlxhCsx1TU0BnIiIqPAKpyBbFQFJhAFjuFQM3CqcHL0C/WOBKtxAcmDiCBkp5iCnBICMcUVagqGWyMiQpRiYwE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Designation = _t, #"Manager Name" = _t, Date = _t, #"Client name" = _t]),
#"Grouped Rows" = Table.Group(Source, {"Name", "Designation", "Manager Name", "Date"}, {{"Client name", each Text.Combine([Client name],","), type nullable text}}),
Custom1 = Table.SplitColumn(#"Grouped Rows", "Client name", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), List.Transform({1..List.Max(Table.AddColumn(#"Grouped Rows", "Temp", each List.Count(Text.Split([Client name],",")))[Temp])},each "Client name." & Number.ToText(_)))
in
Custom1
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
39 | |
21 | |
20 | |
19 | |
13 |
User | Count |
---|---|
68 | |
55 | |
42 | |
28 | |
22 |