web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Replacing null values ...
Power Automate
Unanswered

Replacing null values with 0 and non-empty values with 1

(1) ShareShare
ReportReport
Posted on by 91

I have a flow that generates a CSV file. I need the information in certain columns to be changed to 1 when it's not empty and 0 when they're empty. I tried using the formula:

 

Monikk2711_1-1721054503125.png

 

 

but I get error "Action 'AgeBinary' failed: Unable to process template language expressions in action 'AgeBinary' inputs at line '0' and column '0': 'The template language expression 'if(equals(body('Select')?['AGE'],null),0,1)' cannot be evaluated because property 'AGE' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'."

Monikk2711_0-1721054476175.png

Any help would be appreciated.

 

Categories:
I have the same question (0)
  • MG-27051438-0 Profile Picture
    91 on at

    In case anyone is interested, I've solved this issue by using the formula in the Select action, instead of an additional action in the flow:

    Monikk2711_0-1721061570026.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard