I am getting the error that characters are used in an unexpected way.
"For example, the character '\' isn't expected after a number, like this: '32\'. A space ('32') would be expected so that it's just the number 32 or another number (as in '323') would be expected.
Filter('HSS Picksheet020521Z', StartsWith(Title,ResourceDropDown.SelectedText.Value)), If(IsBlank(SerialSearchBox.Text),Filter('HSS Picksheet020521Z','Serial Number'=V1),Filter('HSS Picksheet020521Z',StartsWith('Serial Number', SerialSearchBox.Text)))
Solved! Go to Solution.
This is what ended up working:
<Filter('HSS Picksheet (6)', And(Title = ResourceDropDown.Selected.Result), StartsWith('Serial Number',SerialSearchBox.Text))>
Please share a screenshot of this formula with the red lines and error. That message can be confusing and doesn't necessarily refer to a character that shouldn't be there.
The red line only appears under the comma (I drew it in because it goes away when you click away from the screen)
Try reconstructing your filter statement something like this:
If(
IsBlank(SerialSearchBox.Text),Filter('HSS Picksheet020521Z','Serial Number'=V1),
!IsBlank(ResourceDropdown.SelectedText.Value), Filter('HSS Picksheet020521Z', StartsWith(Title,ResourceDropDown.SelectedText.Value))
Filter('HSS Picksheet020521Z',StartsWith('Serial Number', SerialSearchBox.Text))
)
Currently where the comma is it's expecting ';'.
How do I fix this?
Edit: this was meant to be a response to another post
Did you see my previous answer? Your filter statement needs to be reconstructed. I gave you an example based on what you have now.
Let me ask this.
Here is what I see in your filter statement. You want it to filter by the value of the Resource dropdown or by the search box value. If the searchbox is blank it will automatically filter by the value V1.
Try this:
If(
!Isblank(SerialSearchBox.Text, Filter('HSS Picksheet020521Z', StartsWith('Serial Number', SerialSearchBox.Text) Or StartsWith(Title, ResourceDropDown.SelectedText.Value),
IsBlank(SerialSearchBox.Text), Filter('HSS Picksheet020521Z', 'Serial Number' = "V1")
)
My apologies:
My comment "How do I fix this?" was intended for another post.
My intention is that my data table is filtered by a 'Resource' (the drop down) AND filtered by a 'serial number'. I want the user to have the option to scan a barcode of the 'serial number' OR type in the serial number if a barcode is not available.
Ok, you will still need to reconstruct your filter statement. It's not going to to work the way you have it. The whole filter statement needs to be in within the If(), to work properly.
Try it this way.
If(
!Isblank(SerialSearchBox.Text And !IsBlank(SerialSearchBox), Filter('HSS Picksheet020521Z', StartsWith('Serial Number', SerialSearchBox.Text) And StartsWith(Title, ResourceDropDown.SelectedText.Value),
IsBlank(SerialSearchBox.Text), Filter('HSS Picksheet020521Z', 'Serial Number' = "V1")
)
There are some things that need debugging in the formula you provided. I am assuming that fixing errors at the top of the formula checker will resolve the ones on the bottom of the list.
Here is the first one:
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
196 | |
71 | |
49 | |
36 | |
25 |
User | Count |
---|---|
242 | |
111 | |
89 | |
88 | |
66 |