# Flows! FQL help

**URL:** <https://community.postman.com/t/flows-fql-help/45878>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [March 31, 2023, 6:53pm UTC](https://community.postman.com/t/flows-fql-help/45878 "2023-03-31T18:53:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreskoljalg](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/andreskoljalg/32/15410_2.png) [@andreskoljalg](https://community.postman.com/u/andreskoljalg)\
**Post date:** [March 31, 2023, 6:53pm UTC](https://community.postman.com/t/flows-fql-help/45878/1 "2023-03-31T18:53:15Z")

</div>

Hello there! 🌻

2nd-day discovering Postman Flows. What an amazing tool - I really do love it.  
However, unfortunately, I’m not familiar with and haven’t gotten a hang of FQL yet… The syntax for some things just doesn’t click in my head.

I’ve made another one of these big Flows, but the issue I’m running into is returning some values between two fields.

Basically, I have 1 field which is the input (`spotifyValueArtist`), and another field which is the already existing data (`PDvalueArtist`). I want to compare these two, and only return the stuff that’s not in `PDvalueArtist`

Here’s a short visual representation of them:

> **[Screenshot on 2023-03-31 at 21-49-47.png](https://sharing.pipedrive.com/i/t2Ou0W)**
>
> Shared with Droplr

Question:  
How should the FQL look like, so I only get the values of `spotifyValueArtist` that do not already exist in `PDvalueArtist`?

I’ve already tried:  
`spotifyValueArtist[$not(PDvalueArtist)]` **- just gives me an error.**  
`$filter((spotifyValueArtist), $not (PDvalueArtist))` **- returns _`null`_**

Thank you so much! ⚔

---

<div class="post-metadata">

**Author:** ![s-a-g-e](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@s-a-g-e](https://community.postman.com/u/s-a-g-e)\
**Post date:** [March 31, 2023, 7:42pm UTC](https://community.postman.com/t/flows-fql-help/45878/2 "2023-03-31T19:42:08Z")

</div>

Hey @andreskoljalg, FQL is still evolving and we will continue to make it simpler.

For now the query will look something like this

```auto
$filter(spotifyValueArtist, fn ($v1) { 
   $count($filter(PDvalueArtist, fn($v2) { $v1 = $v2 })) = 0
})

```

**Explanation**

1. We are filtering the values in `spotifyValueArtist` List using a user-defined function `fn ($v1) {}`
2. The `fn($v1)` is filtering the list `PDvalueArtist` and generating another list where both the strings are same
3. Finally we use the `$count` function to check that the count is 0, i.e the strings in `PDvalueArtist` did not match `spotifyValueArtist`

---

<div class="post-metadata">

**Author:** ![andreskoljalg](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/andreskoljalg/32/15410_2.png) [@andreskoljalg](https://community.postman.com/u/andreskoljalg)\
**Post date:** [March 31, 2023, 8:30pm UTC](https://community.postman.com/t/flows-fql-help/45878/3 "2023-03-31T20:30:06Z")

</div>

Thank you Saswat! You truly are a lifesaver 🥹

I’d never figure it out on my own 😅

Great to see that ya’ll are so helpful, and your Support is next level as well! 10/10 favourite product I know. Ya’ll should do merch.

 ![Screenshot 2023-03-31 at 23.26.25](https://us1.discourse-cdn.com/getpostman/original/3X/e/a/eadaec4eaf02b4551e7ed7b8ffba39fe04b8ffc0.png)
