Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi community,
I trying to build a Table Heatmap like the following image,
But to achieve this I don´t get any way to calculate the "% NOI" value whit the data set I have. This is an example of my data set, as you can see the calculation need to be form the sum of all the Income of the Month by Categry and then obtain by simple rule of three the "% NOI".
¿Is there any way that I can create a calculete field insede my data set or some other methods to perform this?
Thanks 😄
Solved! Go to Solution.
Hi @camargos88 ,
Maybe this can help you. You could reference it to modify your formula based on the actual situation.
Income =
CALCULATE (
SUM ( 'Table'[Total] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Category], 'Table'[Month] ),
'Table'[Column] = "Income"
)
)
Expense =
CALCULATE (
SUM ( 'Table'[Total] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Category], 'Table'[Month] ),
'Table'[Column] = "Expense"
)
)
NOI = [Income] + [Expense]
% NOI = DIVIDE([NOI],[Income])
And you could take a look at the document: Use conditional formatting in tables to try customizing the background color.
Conditional formatting
Result
You could download the attachment to learn more details.
Hi @JorgeMolano ,
Try this code:
Hi @camargos88 ,
Maybe this can help you. You could reference it to modify your formula based on the actual situation.
Income =
CALCULATE (
SUM ( 'Table'[Total] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Category], 'Table'[Month] ),
'Table'[Column] = "Income"
)
)
Expense =
CALCULATE (
SUM ( 'Table'[Total] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Category], 'Table'[Month] ),
'Table'[Column] = "Expense"
)
)
NOI = [Income] + [Expense]
% NOI = DIVIDE([NOI],[Income])
And you could take a look at the document: Use conditional formatting in tables to try customizing the background color.
Conditional formatting
Result
You could download the attachment to learn more details.
Hi,
This is exactly what I was looking for, now I know how to use this calculations.
Thanks so much for you'r help !!😉
Hi camargos88
I add this new column but it looks like only get 1 or ∞ when is an Expense, and when I try to build the Table Heatmap only appears the ∞ symbols.
Regards!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 121 | |
| 96 | |
| 65 | |
| 46 |