Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have device details like below , some same device is assigned to different people. I want to create a new column which says if the device is attached to same or different people using power query, please suggest;
Final result;
there could be more than two entries for the same device.
Assuming each DeviceName/AssignedTo row is not duplicated, then
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8kksKMkvMFTSUQpILUktUorVQRbzSsxNLUYSMwKJleZkpiKJGQPFHPPyMMTccvKLQIKxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [DeviceName = _t, AssignedTo = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"DeviceName", type text}, {"AssignedTo", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"DeviceName"}, {
{"All", each _, type table [DeviceName=nullable text, AssignedTo=nullable text]},
{"Remarks", each if Table.RowCount(_) = 1 then "Same" else "Different", type text}
}),
#"Expanded All" = Table.ExpandTableColumn(#"Grouped Rows", "All", {"AssignedTo"})
in
#"Expanded All"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
9 | |
8 | |
7 |
User | Count |
---|---|
17 | |
10 | |
7 | |
6 | |
6 |