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

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
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
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

Helper III
Helper III

Hi Yashag,

 

Thanks for your help. This helped me a lot!

 

Regards,

 

Daniel

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (71,368)