Personal list in Insights

We want to create a personal overview in Insights. So we need to apply a filter based on the name of the person who is logged in. Filtering on user.name isn’t possible, which is why we built the following into the template:

{% if x == user.name %}
{% result “my_planning” “Yes” %}
{% else %}
{% result “my_planning” “No” %}
{% endif %}

However, the result in the query is that when x is empty, the value in the list becomes Yes, and when x does have a value, the value in the list becomes No. That’s obviously not what we want.

What is the correct way to create a personal list in Insights?

As an addition: If I retrieve the result within the dossier x, then the result is Yes, but in Insights it apparently shows No.

Support has referred us to the Community.