cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dalacarelia_196
Helper IV
Helper IV

Combine Filter and Startwith i listbox

Hello 

I am trying to filtering my listbox 

So far i cant see all the schools by idnr  "1003" and filtering out courses starting och E or S 

But not combined , Filter(klass ; Skola =ddSkola.SelectedText.Value; Program = Filter( tblProgram; StartsWith(Program; "E") Or StartsWith(Program; "S"))).Program

 

This is how i think it dosent work out maybee its not possible 

 

Works Code Filter(tblProgram;Kostnadsställe="1003").Skola

 

Works Code Filter( tblProgram; StartsWith(Program; "E") Or StartsWith(Program; "S")).Program

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@dalacarelia_196 

Here's how I would combine your 2 working FILTER functions.

Filter(
    klass;
    Skola = ddSkola.SelectedText.Value;
    StartsWith(Program; "E") Or StartsWith(Program; "S")
).Program

 

If Skola is a number it might be necessary to put this section of code inside the value function

Skola = Value(ddSkola.SelectedText.Value)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
mdevaney
Super User III
Super User III

@dalacarelia_196 

Here's how I would combine your 2 working FILTER functions.

Filter(
    klass;
    Skola = ddSkola.SelectedText.Value;
    StartsWith(Program; "E") Or StartsWith(Program; "S")
).Program

 

If Skola is a number it might be necessary to put this section of code inside the value function

Skola = Value(ddSkola.SelectedText.Value)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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 (3,203)