cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShowMeTheAnswer
Helper III
Helper III

Lookup not working on Default: Property Expects Text Values but this propery expects record

Part of a wider problem, but if someone can just help me with this tiny bit.

I want that this formula works as a default for a drop-down in a dataform:

LookUp('[dbo].[APPLICATION]',APP_ID = ThisItem.APPLICATION_ID.value)

 

e.g. ThisItem has an APP_ID.

The APP_ID is stored in the MAIN table, and we need to lookup what application it's for in the APPLICATION table.

The absolute simplest thing to do in SQL, like this:

SELECT [MAIN_ID],[APPLICATION_ID],app.APPLICATION

fROM [MobileDataStudio].[dbo].[MAIN]

inner join [dbo].[APPLICATION] app on APPLICATION_ID=APP_ID

 

But PowerApps just says (meaninglessly, and incorrectly) "This Property Expects Text Values but this propery returns incomptiable record values".

I tried putting "Value" after it; it makes no difference, and surrounding the whole thing with text.

Looked it up online but nothing there worked. Seems like "PowerApps" can't even handle a basic select query, or frankly, anything where joined tables are involved. It only works if you have one big table with everything in.

 

1 ACCEPTED SOLUTION

Accepted Solutions
ShowMeTheAnswer
Helper III
Helper III

Don't know how to delete this but I solved it myself:

LookUp('[dbo].[APPLICATION]',Text(APP_ID) = ThisItem.APPLICATION_ID,APPLICATION)

View solution in original post

1 REPLY 1
ShowMeTheAnswer
Helper III
Helper III

Don't know how to delete this but I solved it myself:

LookUp('[dbo].[APPLICATION]',Text(APP_ID) = ThisItem.APPLICATION_ID,APPLICATION)

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,908)