Forum Discussion

Capitalgman987's avatar
Capitalgman987
Copper Contributor
Dec 08, 2024
Solved

How to check if a list is blank and then take action based on the result.

I am a very new with Power Query and M.  The following code works as long as the list (lstFund) has a value.  If not, the query rightfully errors. How do I check if the list is empty (List.IsEmpty??...
  • Capitalgman987's avatar
    Dec 16, 2024

    Thank you all for your replies. I couldn't get any variation of your suggestions to work. I finally got it to work by using if List.NonNullCount(list Name)<1 then... 

    Thanks again.

Resources