cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

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
Highlighted
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
Highlighted
Resolver II
Resolver II

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

Highlighted
Helper V
Helper V

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

Highlighted
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

Highlighted
Helper V
Helper V

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

Highlighted
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

Highlighted
Helper V
Helper V

Re: I need help with a formula: URGENT

Thank you very much for your knowledge @RezaDorrani 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (7,410)