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

Filter function works with only 3 conditions

Hi,
I’m trying to filter data from SharePoint list with 4 conditions and sum one of the column.

Here is my formula

Sum(filter(datasource, condition1 && condition2 && condition3 && condition4), colx)

It doesn’t work. If I remove one condition it works, it shows the sum.

Is there any restrictions on no of conditions with filter function or can you help on this? Thanks
2 REPLIES 2
Super User
Super User

I am not aware of limit with conditions. Are you sure that you have items in the SharePoint list that meet all four conditions? If so, how large is your list? I ask because I don't think the Sum() is delegable in SharePoint, so it could be factor in your results.

 

You can also write the formula like this:

Sum(filter(datasource, condition1, condition2, condition3, condition4), colx)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Community Support
Community Support

Hi @sjagnade ,

Could you please share more details about your formula?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please consider modify your formula as below:

Sum(
Filter(
datasource,
condition1,
condition2,
condition3,
condition4
),
colx
)

Please also check if you have specified proper filter condition within your Filter function. More details about Filter function, please check the following article:

Filter function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (92,270)