Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel PowerQuery: how do I add an IsNotNull column

I have a simple function that I’d like to run on the values in a column, resulting in another column.

    let 
        ThisIsNotNull = (input) => if (input = null) then false else true,
        Source = ...

eventually there is a text column with Nulls in it, let’s call it TextColumn.
I’d like to add another column alongside it with a value of =ThisIsNotNull(TextColumn).

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Add column… Custom column with formula

 = ThisIsNotNull([NameOfColumnToTest])

But really you can skip the function and just use

 = if [NameOfColumnToTest] = null then false else true
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading