cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanielRK
Post Partisan
Post Partisan

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!

View solution in original post

DanielRK
Post Partisan
Post Partisan

Hi Yashag,

 

Thanks for your help. This helped me a lot!

 

Regards,

 

Daniel

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (63,863)