Forum Discussion
te7037
Nov 16, 2022Copper Contributor
Count non-empty cells across several columns in Power Query in MS Excel
I wish to count non-empty cells across several columns in Power Query.
In MS Excel, I use COUNTNA(A2:J2) but what is the equivalent syntax in PowerQuery?
- Riny_van_EekelenPlatinum Contributor
te7037 Look into the M function List.NonNullCount
https://learn.microsoft.com/en-us/powerquery-m/list-nonnullcount
- te7037Copper ContributorI tried but due to my lack of knowledge of the DAX language. I am struggling.
- Riny_van_EekelenPlatinum Contributor
te7037 This is not DAX. I must admit that MS site included in the link I included is not always very useful. Perhaps this one gives more relevant examples.