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 / Set variable with usin...
Power Apps
Unanswered

Set variable with using concat

(0) ShareShare
ReportReport
Posted on by 27

Hello, I want to make a new variable with using a concat function. The following is my code

victornaeyaert_0-1709119455791.png

And this is my sharepoint list

victornaeyaert_1-1709119485064.png

Everything after "Dienst" is a boolean.

Why is my code wrong?

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @victornaeyaert 

     

    Ik zie Nederlands 🙂 

     

    Concat is not used properly.

    Concat(Table, Formula, separator) needs a table in the first parameter. 

     

    I would assume you need Concatenate instead of Concat.

    Please check the Syntax documentation.

     

    Wat voor foutmelding geeft the ForAll? (The ForAll is Underline double red).

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • realwillwright Profile Picture
    772 Moderator on at

    Hi @victornaeyaert 

     

    In addition, the correct use should be

     

     

    Set(
     varButtonText,
     $"Knoppen voor: {Concat(Filter('Onboarding_proces_employees', 1=1), IT, ",")}"
    )

     

     

    -------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • victornaeyaert Profile Picture
    27 on at

    De syntax error geeft het volgende: The function 'Concat' has some invalid arguments. Invalid number of arguments: received 3, expected 2.
    De bedoeling van de script is dat de variabele in de tekst komt van een knop en dat het dynamisch is. Bijvoorbeeld in de tabel wordt IT en Diensthoofd als true aangezien ( kolommen zijn booleans) dat er 2 knoppen zichtbaar worden en dat de tekst van de kolomnaam wordt weergegevn op de twee knoppen.

     

  • victornaeyaert Profile Picture
    27 on at

    This doesn't work correctly. I get the following. 

    victornaeyaert_0-1709123311359.png

     

  • realwillwright Profile Picture
    772 Moderator on at

    Have you put your filters in correctly to replace the 1=1?

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 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard