Forum Discussion
Subtotal Matrix Percentages by Another Total
- 1 year ago
Hi MurphyYancey
Please try the below DAX:% of Sales = DIVIDE( SUM('Table1'[Amount]), CALCULATE( SUM('Table1'[Amount]), ALLSELECTED('Table1'[GL Account], 'Table1'[Account Description]), 'Table1'[Account] = "Sales" ) )I hope this meets your requirement. If this doesn’t fully solve your issue, please share a sample of your data and more context so we can provide a more precise solution.
If this post helps, kindly mark it as Accepted Solution.
Thank You!
techies v-karpurapud I appreciate both replies! I'm confirming with my team that I can get a sample dataset. Both responses return 1.0 for the percentages where I need something a little different. Until I can get a dataset, here is a screenshot of what I am more looking for (using Excel to show):
- v-karpurapud1 year agoCommunity Support
Hi MurphyYancey
Please try the below DAX:% of Sales = DIVIDE( SUM('Table1'[Amount]), CALCULATE( SUM('Table1'[Amount]), ALLSELECTED('Table1'[GL Account], 'Table1'[Account Description]), 'Table1'[Account] = "Sales" ) )I hope this meets your requirement. If this doesn’t fully solve your issue, please share a sample of your data and more context so we can provide a more precise solution.
If this post helps, kindly mark it as Accepted Solution.
Thank You!