Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the below calculation that should take an email address, filter the roles table for that email. It should then filter the Master table Company column for the same companies as in the filtered roles table.
Note, testing@test.com can have multiple companies.
The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
FilteredMasterTable =
VAR SelectedEmail = "testing@test.com"
VAR SelectedRoles =
CALCULATETABLE(
VALUES('Roles Table'[Company]),
'Roles Table'[Email] = SelectedEmail
)
RETURN
FILTER(
Master,
Master[Company]IN SelectedRoles
)
Hi, @obriaincian
Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Note: I want to implement this as Row Level Security but I am testing it in a measure first
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |