Forum Discussion
vic24he
1 year agoFrequent Visitor
Checking multiple rows for same ID, see if a value exists in a different column
Hi all, I have a data set that I'm having trouble with. Data example: ID | Year 1 | null 1 | 2000 1 | null 2 | null 3 | null 3 | 2001 I need to know if the Year ...
- 1 year ago
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUVKK1YEwjAwMDOAcMMMIxjBGZgDVGSrFxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, Year = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Year", Int64.Type}}), #"Grouped Rows" = Table.Group(#"Changed Type", {"ID"}, {{"Rows", each _, type table [ID=nullable text, Year=nullable number]}}), #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Year Populated", each if List.Count(List.RemoveNulls([Rows][Year]))>0 then "yes" else "no") in #"Added Custom"
ThxAlot
1 year agoSuper User
Easy enough,
vic24he
1 year agoFrequent Visitor
Hi - is there a power query solution? I am not using PBI with DAX, but rather dealing with a larger data set in excel using PQ. I looked at your response below and I'm not sure how power pivot is able to load the results into a data table