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 Apps / Text/Boolean Incompati...
Power Apps
Answered

Text/Boolean Incompatibility When Setting a Variable From Datasource

(0) ShareShare
ReportReport
Posted on by 197

 

I have the following formula in the OnSelect of the next arrow of a gallery (FavProd😞

 

Select(Parent)
;If(FavProd.Selected.ChkC=false,Set(VarChkC,false),Set(VarChkC,true)
;Navigate(Mixing,ScreenTransition.Fade)

The user has the option to save several settings back to an Excel file (saved in OneDrive), of which a checkbox "C" (ChkC) is one of  those setting options.

 

What I am trying to do above is recall the user's selection from this Excel file to auto-populate the ChkC checkbox when that user selects a given favorite from the gallery. I assume my issue is with the following portion of the formula, but am not sure how to correct it:

FavProd.Selected.ChkC=false

 

The error I am getting is:

PA20191004.png

 

Side note: ChkC is the name of: a) the checkbox in question, b) the column name in the Excel file. Don't see this being an issue, but wanted to mention it to avoid confusion.

 

 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,721 Super User 2026 Season 1 on at

    Hi @AGS94 

    Can you confirm the values that you're storing in the chkC column in your spreadsheet? If you're storing the text values "true" and "false" in this column, you could try testing against the string value "false" to see if that fixes your problem.

     

    Select(Parent)
    ;If(FavProd.Selected.ChkC="false",Set(VarChkC,false),Set(VarChkC,true)
    ;Navigate(Mixing,ScreenTransition.Fade)

     

  • AGS94 Profile Picture
    197 on at

    That did the trick. Is there a way to save the original value to Excel as a boolean value, or will it always save as text?

  • timl Profile Picture
    36,721 Super User 2026 Season 1 on at

    Glad that did the trick. I don't it's possible to save the orginal value to Excel as a boolean value, but maybe someone else here with more experience in Excel might be able to comment.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard