cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
octaking
Level: Powered On

I need help with a formula: URGENT

Maybe you can help me in the following way I am new to this

 

you will see in the first image what I want to show in a gallery of powerapps are the pending APPROVAL RQUEST

 

download (6).png

 

in the second image is the filter of what I just showed you in the first image as you can see is the source (Approvals) that has a relationship with (Request for approvals) and this is how the indicator shows me the approvals Request where the Approval status is Active

 

68868591_897155847311014_6665750812024635392_n.jpg

 

If you helped me to replicate what is in the second image through a formula my big problem would be solved

 

68700447_2517148714974620_4120403899351826432_n.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: I need help with a formula: URGENT

Hi @octaking 

 

here is the code then

 

Filter('Approval Requests',Approval.Status = 'Status (Approvals)'.Active)

 

Regards,

Reza Dorrani

 

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

6 REPLIES 6
lucia
Level 8

Re: I need help with a formula: URGENT

Hey,

 

your formula for fillter is Filter(Datasource, condition) therefore on the second position should be the column where your status Active is. If it is a choice field then it should be something like this. 

 

Filter('Approval Request', Status.Value="Approved")

 

Hope this helps

octaking
Level: Powered On

Re: I need help with a formula: URGENT

Hello, thanks for answering
the status field of my approval request source is always active so this does not help me to filter what I need is to bring the status of the approvals source since this one does serve me

Dual Super User
Dual Super User

Re: I need help with a formula: URGENT

Hi @octaking 

 

Filter('Approval Requests',Status = 'Status (Approval Requests)'.Active) is correct syntax for getting all active statuses from Approval Requests

 

but guess you are trying something else

octaking
Level: Powered On

Re: I need help with a formula: URGENT

Hi @RezaDorrani 

thank you very much for answering,

That was the first thing I tried but the problem was that the Approval Request Status is always active, so it returns all Approvals Request records

 

Therefore, I am trying to filter by the status of the data source (Approvals) as shown in the second image of the first Post

Dual Super User
Dual Super User

Re: I need help with a formula: URGENT

Hi @octaking 

 

here is the code then

 

Filter('Approval Requests',Approval.Status = 'Status (Approvals)'.Active)

 

Regards,

Reza Dorrani

 

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

octaking
Level: Powered On

Re: I need help with a formula: URGENT

Thank you very much for your knowledge @RezaDorrani 

Helpful resources

Announcements
thirdimage

Power Platform 24

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (4,818)