Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am trying to count all cells in a row that contain now data
I got the below code from another post looking for something similar and it works counting blanks but not null values, is there a way to count the null values also
= Table.AddColumn(#"Filtered Rows", "Count Blanks", each List.Count(List.Range(List.Select(Record.FieldValues(_), each _ = ""), 1, 100)))
Solved! Go to Solution.
Hey @PJHos
you can try the formula:
List.Count(List.Select(Record.FieldValues(_), each _ = "" or _ = null))
Hope it works for you...
Cheers, LQ
Hey @PJHos
you can try the formula:
List.Count(List.Select(Record.FieldValues(_), each _ = "" or _ = null))
Hope it works for you...
Cheers, LQ
Hey @PJHos
the following formula gives you what you want, try it and let me know 😉
List.Count(Record.FieldValues(_))-List.NonNullCount(Record.FieldValues(_))
Cheers, LQ
Hi Thank you for taking the time to help 😊
I tried the code and this does indeed count all null cells however it now no longer counts the blanks as well
would it be possible to count both null and blanks for a row?
List.Count(Record.FieldValues(_) , each _ <> null)
Try this? 🙂