Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

RLS for 2 dimensions

The project is about moving between projects. I have two RLS tables (RLS_origem and RLS_destino), one for the source project(RLS_origem) and the other for the target project(RLS_destino), where I ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    The issue was resolved with the following solution:

     

    SOLUTION: 

    (
            [sol_origem.sk_projeto] IN SELECTCOLUMNS(
                FILTER(
                    'RLS_origem',
                    'RLS_origem' [email_login] = USERNAME()
                ),
                "Project",
                [rls_sk_projeto_orig]
            )
        ) || (
            [sol_destino.sk_projeto] IN SELECTCOLUMNS(
                FILTER(
                    'RLS_destino',
                    'RLS_destino' [email_login] = USERNAME()
                ),
                "Project",
                [rls_sk_projeto_dest]
            )
        )