cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanielRK
Super User
Super User

Need help writing formula

Hi,

 

I've built a gallery with a mix of inputs to replicate a sharepoint list.

 

For one of those inputs, I'm trying to write a formula like this in the "items" property:

 

If(IsBlank(Dropdown1.Selected), SortByColumns(CaseOrigin, "Title", Ascending), ThisItem.'Case Origin')

 

My intention is that the dropdown have various choices from another SP list if the field is blank but if it already has a selected option then that value should be that value.

 

I'm getting the following error in my studio:

DanielRK_2-1611038986737.png

 

DanielRK_0-1611038948603.pngDanielRK_1-1611038961816.png

Please guide me to understand what I'm doing wrong. Thank you.

 

Regards,

 

Daniel

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @DanielRK 

 

Gallery expects a table type value in the Items property, which I am guessing ThisItem.'Case Origin' is not.

 

Can you share more details about the structure of your application so that we will be able to help you better.

 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

Hi @DanielRK 

 

Gallery expects a table type value in the Items property, which I am guessing ThisItem.'Case Origin' is not.

 

Can you share more details about the structure of your application so that we will be able to help you better.

 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

DanielRK
Super User
Super User

Hi Yashag,

 

Thanks for your help. This helped me a lot!

 

Regards,

 

Daniel

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,314)