Forum Discussion
Anonymous
3 years agoNot applicable
Leave sub total empty when rows are empty
Hello everyone, In my matrix table, I compare the cost price (Cost) with the selling price (Revenue) per car, but also per part of the car. I want to have a measure for the difference between th...
- 3 years ago
Hi Anonymous
You can try this measure
difference = IF(COUNTBLANK('Table'[Revenue]) > 0, BLANK(), SUM('Table'[Revenue])-SUM('Table'[Cost]))Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
v-jingzhang
3 years agoCommunity Support
Hi Anonymous
You can try this measure
difference = IF(COUNTBLANK('Table'[Revenue]) > 0, BLANK(), SUM('Table'[Revenue])-SUM('Table'[Cost]))
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.