Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have 5 related tables. I have to block users by role
If i enable the 'import' mode below expression is working but not in Direct query mode. Is there any method to convert it so i can use it in direct query mode?
[id] IN SELECTCOLUMNS (
FILTER (
'user_project',
(RELATED('users'[id]) = VALUE(USERNAME()) &&
RELATED('roles_groups'[name]) <> "Power User")
), "projects", [project_id]
)
Hi @rsathish_red,
SELECTEDCOLUMNS() is not a supported function in Direct Query connection mode.
Best regards,
Yuliana Gu
How should i rewrite the query to work in DirectQuery?
Did you find a solution?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |