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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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