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

Powerapps Operator

hi everyone , 

Sumeth_002_0-1603472363979.png


I have a dropdown , in that operator i am using multiple operator . I need to filter a data based on that filter. right now i am using an if condition code  

Filter(
'[GLOBUS_APP].[PAP_V5050_FLEET_DASH]',
'stocking order price' > Value(numbertxt.Text) && warranty = "Y" && service_contract = "Y"
)

that code goes to long . Is it possible to dropdown.select.value ?
For Eg : datasource.column ( dropdown.selected.value(operators) ) . Textinput.Text . 

thank you .

 

1 REPLY 1
Highlighted
Super User III
Super User III

@Sumeth_002 

Consider the following to do this in your filter:

Filter('[GLOBUS_APP].[PAP_V5050_FLEET_DASH]',
   With({x:'stocking order price', y:Value(numbertxt.Text)},
      Switch(Dropdown.Selected.Value,
         ">", x>y,
         ">=", x>=y,
         "<", x<y,
         "<=", x<=y
      ) && 
     warranty = "Y" && service_contract = "Y"
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,510)