Forum Discussion
Calculate value from a summarize table
- 6 years ago
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 formattingResult
You could download the attachment to learn more details.
Hi JorgeMolano ,
Try this code:
- JorgeMolano6 years agoFrequent Visitor
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!
- camargos886 years agoCommunity Champion
- v-xuding-msft6 years agoCommunity Support
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 formattingResult
You could download the attachment to learn more details.
- JorgeMolano6 years agoFrequent Visitor
Hi,
This is exactly what I was looking for, now I know how to use this calculations.
Thanks so much for you'r help !!😉