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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
i have table with column "Col3" and i can have there nulls or some string.
And what i want to check if in Col3 there is everywhere "null" and put it into variable.
Something like if Col3.Contains only nulls then 1 else 0. (so if 1 row is different than null - put 0).
How can i do this?
I am using Power Query, not power BI.
Please help,
Jacek
Solved! Go to Solution.
You can add a custom column that references the entire column by writing #"Previous Step Name"[Col3].
if List.NonNullCount(#"Previous Step Name"[Col3]) = 0 then 1 else 1
Replace #"Previous Step Name" with the appropriate reference (e.g. it might be #"Changed Type" or Source or #"Filtered Rows").
You can add a custom column that references the entire column by writing #"Previous Step Name"[Col3].
if List.NonNullCount(#"Previous Step Name"[Col3]) = 0 then 1 else 1
Replace #"Previous Step Name" with the appropriate reference (e.g. it might be #"Changed Type" or Source or #"Filtered Rows").
Thank you!!
Jacek
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 8 | |
| 7 |