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 / "ThisItem" operator no...
Power Apps
Answered

"ThisItem" operator not recognized in PowerApps editor

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have build a basic checklist app with an excel datasource. It was working fine but slow. I have rebuild the app with a custom common data service data source. The speed is much better now, but I end up with a different problem.

 

For some functions when using the Excel data source I used the "ThisItem" operator. In my CDS data source version the "ThisItem" operator is not recognized anymore in my editor. Any idea/advice what to do?

 

Thanks,

Categories:
  • GarethPrisk Profile Picture
    2,828 on at

    ThisItem is not specific to any particular database. It is an identifier, to give you context to the selected item in the Gallery/Form.

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators#thisitem-thisrecord-and-as-operators

     

    You will need to check the Items property of your gallery (or Item of a form), to ensure it is set correctly. If you switched the Items or Item of your control, then the previous references may not be valid.

    For example

    • Excel table had a column called Title
    • CDS table has a column called Name

    A label in the Gallery (previously on Excel) may have worked with a Text property of ThisItem.Title, but will not resolve properly when you switch to CDS. You would need to update the identifier reference to ThisItem.Name. Even if the column displays are identical in both sources, you may still need to update the references.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Gareth,

     

    Thanks for your reply.

     

    My issue is not so much the property setting, but the syntax of "ThisItem" is not recognized. I added a screenshot. You can see it at the formula bar that the identifier is not recognized. Any suggestion how to fix this?

     

    Thanks,

    Picture1.png
  • Verified answer
    timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    Hi @Anonymous 

    The problem here is that Label1 has been added directly to your screen, as indicated by the cookie trail that is highlighted.

    timl_0-1607103024146.png

     

    A control needs to be housed within a card on your form in order for ThisItem to be valid.

    The easiest way to resolve this problem would be to add a custom card onto your form, and to add your label onto the card. Alternatively, you could add your label to an existing card.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard