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 Apps / Error in Power Apps fo...
Power Apps
Suggested Answer

Error in Power Apps formula

(1) ShareShare
ReportReport
Posted on by 4
Hi, I've been having trouble with this Power Apps formula, I'm starting to learn how to create apps, and trying to create a questionnaire with SharePoint as well as following a tutorial. However, it seems to give a syntax error
This is the formula I'm using
 
 

ClearCollect(

    colQuestions,

    ShowColumns(

        AddColumns(

            Questions,

            "Answers",

            Table(

                {Answer: ThisRecord.Option1},

                {Answer: ThisRecord.Option2},

                {Answer: ThisRecord.Option3},

                {Answer: ThisRecord.Option4}

            )

        ),

        "Title",

        "Answers"

    )

)

I don't know what the error is. If anyone knows the solution or what I might be doing wrong, I would really appreciate it.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi,
     
    If you look at the Stethoscope in the top right, it should have a red dot like the one below. Click it and find the Screen that the error is on, and it will list all the errors. Before I just say what the issue is, I want you to find the error, and review it, bring it back here after you tried to resolve it and I'll help you resolve it.
     
     
  • Suggested answer
    ohartzer Profile Picture
    4 on at
    Hi,

    just remove the " " from the column names.
     

    ClearCollect(

        colQuestions,

        ShowColumns(

            AddColumns(

                Questions,

                Answers,

                Table(

                    {Answer: ThisRecord.Option1},

                    {Answer: ThisRecord.Option2},

                    {Answer: ThisRecord.Option3},

                    {Answer: ThisRecord.Option4}

                )

            ),

            Title,

            Answers

        )

    )

    Happy low-coding
     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard