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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard