Forum Discussion
Anonymous
5 years agoNot applicable
Creating a new range column in Power Query
Hi, I'm currently working with some survey data in Power BI and struggling to creating a new range column based on two other columns. The collection of age data has changed at some point thr...
- Anonymous5 years ago
Hi Anonymous
Your Age Dimension table has all the unique entries, right? Here is one way, added one row to show the result
(x)=> if x[nyaldrp]>0 then x[alder] else dimAge[Age_BK]{ List.PositionOf(dimAge[Custom],List.Select(dimAge[Custom], each List.Contains(_,x[alder])){0})}?Added one Custom column in dimAge
Anonymous
5 years agoNot applicable
Hi Anonymous
Your Age Dimension table has all the unique entries, right? Here is one way, added one row to show the result
(x)=> if x[nyaldrp]>0 then x[alder]
else dimAge[Age_BK]{ List.PositionOf(dimAge[Custom],List.Select(dimAge[Custom], each List.Contains(_,x[alder])){0})}?
Added one Custom column in dimAge