Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
We have scores on multiple brokers. Each manager can see the score of his/her own team members (broker). And should be able to see the overall score of other teams, but not be able to see the score of team members in the other team.
With RLS I can get to the first part: Show scores of own team. But how do I get the scores per team without seeing the individual scores in that team as a manager?
Table with scores:
Column "Manager" is successfully used for RLS
Current result:
What I try to achieve:
Any suggestions?
Kind regards,
Sebastiaan
Solved! Go to Solution.
Hi @Sebast1aan ,
1. First create the following calculation table.
SubTotal =
SUMMARIZE(
Scores,
Scores[Country],
"Ave_Score", AVERAGE(Scores[Score])
)
2. Then create the inter-table relationships.
3. Create the following measure.
Measure =
IF (
ISFILTERED ( Scores[Broker] ),
CALCULATE (
AVERAGE ( Scores[Score] ),
USERELATIONSHIP ( Scores[Country], SubTotal[Country] )
),
SUM ( SubTotal[Ave_Score] )
)
4. I created two roles for testing and looked at the scores for countries Belgium and Germany respectively.
5. Here are the results of my test.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Sebast1aan ,
1. First create the following calculation table.
SubTotal =
SUMMARIZE(
Scores,
Scores[Country],
"Ave_Score", AVERAGE(Scores[Score])
)
2. Then create the inter-table relationships.
3. Create the following measure.
Measure =
IF (
ISFILTERED ( Scores[Broker] ),
CALCULATE (
AVERAGE ( Scores[Score] ),
USERELATIONSHIP ( Scores[Country], SubTotal[Country] )
),
SUM ( SubTotal[Ave_Score] )
)
4. I created two roles for testing and looked at the scores for countries Belgium and Germany respectively.
5. Here are the results of my test.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This sort of pattern might help:
Implement Non Visual Totals with Power BI security roles - SQLBI
I have also been playing with another way of doing it which I think might be more elegant but I can't find any documentation on it so not sure how supported it is.
Re: Tabular - Security Filtering Behaviour = None - Microsoft Power BI Community
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
82 | |
65 | |
51 | |
31 |
User | Count |
---|---|
119 | |
113 | |
71 | |
62 | |
46 |