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

How to replace request date with a variable extract from Combobox value

How to replace request date with a variable extract from Combobox value

Below code working

Sort(Filter(Install,(IsBlank('REQUEST DATE') && ProjectComboBox.Selected.Title in Project )),'Room No.',Ascending)

But once replace with a variable as below not fetching the right data as it treats variable as a value

Sort(Filter(Install,(IsBlank("'" & UpdateTypeComboBox.SelectedItem.UpdateType & "'") && ProjectComboBox.Selected.Title in Project )),'Room No.',Ascending)

Please advice

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @tarzanking ,

Do you want to use the function of IsBlank with a dynamic field name in Combo Box?

It’s not supported to use dynamic field name in the function of IsBlank in PowerApps currently, you could only use a specific field name in it.

As an alternative way , you could try this formula:

Sort(Filter(Install,(IsBlank(

                                             If(UpdateTypeComboBox.SelectedItem.UpdateType=column name1,’column name 1’,

                                                 UpdateTypeComboBox.SelectedItem.UpdateType=column name2,’column name2’,…,….) && ProjectComboBox.Selected.Title in Project )),'Room No.',Ascending)

 

 

 

 

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @tarzanking ,

Do you want to use the function of IsBlank with a dynamic field name in Combo Box?

It’s not supported to use dynamic field name in the function of IsBlank in PowerApps currently, you could only use a specific field name in it.

As an alternative way , you could try this formula:

Sort(Filter(Install,(IsBlank(

                                             If(UpdateTypeComboBox.SelectedItem.UpdateType=column name1,’column name 1’,

                                                 UpdateTypeComboBox.SelectedItem.UpdateType=column name2,’column name2’,…,….) && ProjectComboBox.Selected.Title in Project )),'Room No.',Ascending)

 

 

 

 

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Top Solution Authors
Top Kudoed Authors
Users online (1,209)