Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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? 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.