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

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

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,275)