Is it possible to write a group by conditions in PQL for audience rule?
Is it possible to write group by OR nested group by in PQL queries for an audience evaluation? If yes, What is the syntax?
| Profile ID | Ranking | DateofBirth |
| 1 | 1 | 01/01/1980 |
| 2 | 1 | 02/02/1981 |
| 3 | 2 | 03/04/1982 |
Condition
- If Ranking score is same, Pick one profile by Max Date of birth
- If Date of birth is same, then pick one random profile
End result
| Profile ID | Ranking | DateofBirth |
| 1 | 1 | 01/01/1980 |
| 3 | 2 | 03/04/1982 |