cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Passing Record Values instead of Table

Hi all, I'm new to Power Apps and I'm struggling just getting started.

 

I've created a Power BI report around project timelines, and I'd like to be able to update the start and end dates with a Power App that is embedded in the report. I published the Power BI report and started to create my new power app from there. It created a Gallery that shows all of my projects. I created a new form that I'd like to edit the start and end dates with and connected it to the same SQL data source the Power BI report is running off of, and tried to use "Filter('[dbo].[vJCJobRoles]',Gallery1.Selected.Job = Job)" in the Item value for the form, but I keep getting "The property on this control expects Record values. The rule produces Table values which are incompatible". If I set up a combobox and use the same filter function, it works fine. There's only 1 record for each project, so I don't understand why Power Apps sees it as a table instead of a record?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Passing Record Values instead of Table

@thuetten 
A FILTER function retrieves a table of values.  Tables are compatible with with the Items property of a Combobox because that control can hold one or more items

 

Filter('[dbo].[vJCJobRoles]',Job = Gallery1.Selected.Job)

 

An Edit Form can only hold a single-item in the Item property.  Therefore, you will want to use the LOOKUP function instead.  LOOKUP retreives the first matching record.

 

LookUp('[dbo].[vJCJobRoles]',Job = Gallery1.Selected.Job)

 

 ---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Passing Record Values instead of Table

@thuetten 
A FILTER function retrieves a table of values.  Tables are compatible with with the Items property of a Combobox because that control can hold one or more items

 

Filter('[dbo].[vJCJobRoles]',Job = Gallery1.Selected.Job)

 

An Edit Form can only hold a single-item in the Item property.  Therefore, you will want to use the LOOKUP function instead.  LOOKUP retreives the first matching record.

 

LookUp('[dbo].[vJCJobRoles]',Job = Gallery1.Selected.Job)

 

 ---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Regular Visitor

Re: Passing Record Values instead of Table

I'm not sure whether to be glad that it was such an easy fix, or ashamed that I didn't figure that out on my own. Regardless, I very much appreciate it!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,457)