why does this tell me that the "Assess" field doesn't exist in powerquery? [code]
- User
why does this tell me that the "Assess" field doesn't exist in powerquery?
codelet ReferenceTable = Initial_Extract{[Schema="dbo",Item=[Name__Source_Table]]}[Data], ColumnName = [Name__Source_Column], AssessContents = Table.AddColumn(ReferenceTable, "Assess", each (if Text.Length(Table.Column(_, ColumnName)) > 5 then "Exceeds 5 Characters" else "Less than 5 Characters")), Grouping = Table.Group(AssessContents, [Assess], {{"Count", each Table.RowCount(_), Int64.Type}}), Concat = Table.AddColumn(Grouping, "Concat", each [Assess] & Number.ToText([Count])), Combine = Text.Combine(Concat[Concat], ", ") in Combine Assistant
The issue here is that you're trying to access the "Assess" column from the
Groupingtable in theConcatstep. However, when you useTable.Group, the resulting table only contains the columns you specified in the grouping (in this case, just "Assess") and the new columns you defined in the aggregation (in this case, just "Count").