Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Help – I have the following tables.
FUFPermission is a list of users and the area they can have access to.
FUFPermission | |
Username | Area |
Back | |
Front | |
Side | |
Side | |
All |
AFU is a table containing the Area
AFU | ||
Area | anotherifeld | anotherfield1 |
Back | 1 | 4 |
Front | 2 | 5 |
Side | 3 | 6 |
I need to create a DAX formula for the AFU table to filter the Area based on user on the FUFPermission table. If the FUFPermission.Area = All then the user will have full access to all records in AFU.
I have created the following DAX formula which filters the Area based on the FUFPermission table but I’m not sure how to include the part which shows all records if the Area value = All in FUFPermission.
IF
(
[Area] IN SELECTCOLUMNS (
FILTER (
'FUFPermission',
''FUFPermission' [Username]=USERPRINCIPALNAME()
),
Area,[Area]
),
TRUE()
)
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
VAR _a =
SELECTCOLUMNS (
FILTER ( 'FUFpermission', [Username] = USERNAME () ),
"Area", [Area]
)
RETURN
IF ( "All" IN _a, TRUE, [Area] IN _a )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try:
VAR _a =
SELECTCOLUMNS (
FILTER ( 'FUFpermission', [Username] = USERNAME () ),
"Area", [Area]
)
RETURN
IF ( "All" IN _a, TRUE, [Area] IN _a )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the response - not sure if this woud work as there is no physical relationship between the tables FUFPermission and AFU.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
13 | |
11 | |
8 | |
8 | |
8 |