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.
Hi,
I want to create a custom column (column 7) that does a count of non-null values in columns 1 to 6.
Need it as a Power Query.
Thank you!
Solved! Go to Solution.
I think you can use a similar principle. Add a custom column as
List.NonNullCount( { [Column 1], [Column 2], [Column 3] } )
I think you could create a new column like
Column 7 =
VAR TmpTable = { 'Table'[Column 1], 'Table'[Column 2], 'Table'[Column 3] }
RETURN
COUNTAX ( TmpTable, [Value] )
Thank you, that solution works for adding a column in the regular table view. But I just realised I need it as a Power Query.
I think you can use a similar principle. Add a custom column as
List.NonNullCount( { [Column 1], [Column 2], [Column 3] } )
Brilliant. Thank you very much!
User | Count |
---|---|
59 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
39 |