This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
We have a table with a measure that divides the Balance value of that row by the sum of the Balance column in that table (Concentration risk). This is what we get:
| Client | Account | Balance | Concentration |
| ABC | 123456 | 10 | 0.1 |
| ABC | 123456 | 20 | 0.2 |
| ABC | 987654 | 20 | 0.2 |
XYZ | 234567 | 40 | 0.4 |
| XYZ | 234567 | 10 | 0.1 |
Using RLS (Modeling > View As) and specifying a client (ABC), we'd expect to get the following table:
| Client | Balance | Concentration |
| ABC | 10 | 0.2 |
| ABC | 20 | 0.4 |
| ABC | 20 | 0.4 |
We instead get the following:
| Client | Balance | Concentration |
| ABC | 10 | 0.1 |
| ABC | 20 | 0.2 |
| ABC | 20 | 0.2 |
This obviously doesn't make sense for our clients because their concentration would never be 100%.
It would also create an issue for us because now they can see how much their own concentration risk on our portfolio is (in the case above, 50%).
Our Concentration column is a measure set to the following:
Concentration = MyTable[Balance]/SUM(MyTable[Balance])
How can we limit the SUM to be specific to the user (client) viewing the report?
Separate to this, we have a filter that spans all reports for subaccounts, how can filter the values to show only relevant rows (Account in first table)?
Solved! Go to Solution.
You need to calculate the concentration on the fly as a measure, not rely on a balance row. The balance field won't recalculate based on RLS. Whatever is in a field is permenant until the next refresh.
It would need to be simlar to this:
Concentration =
VAR varNumerator =
SUM( 'Table'[Balance] )
VAR varDenominator =
CALCULATE(
SUM( 'Table'[Balance] ),
REMOVEFILTERS( 'Table' )
)
VAR Result =
DIVIDE(
varNumerator,
varDenominator,
0
)
RETURN
Result
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYou need to calculate the concentration on the fly as a measure, not rely on a balance row. The balance field won't recalculate based on RLS. Whatever is in a field is permenant until the next refresh.
It would need to be simlar to this:
Concentration =
VAR varNumerator =
SUM( 'Table'[Balance] )
VAR varDenominator =
CALCULATE(
SUM( 'Table'[Balance] ),
REMOVEFILTERS( 'Table' )
)
VAR Result =
DIVIDE(
varNumerator,
varDenominator,
0
)
RETURN
Result
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingWow this is fantastic, we're new to Power BI and still learning DAX. This'll be a powerful tool for us to use once we learn more!
Glad to help @ctoscher - It is an incredibly powerful tool. Learning DAX can be amazing and tricky at the same time. Post back with any questions to the forums.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |