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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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