Forum Discussion
bob57
Helper IV
6 years agoEliminate "hard coding".
Example table: I am producing a pie chart to show the relationship of total payments for each category. I have four measures (one for each category). Cat A = CALCULATE( SUM( 'Table'[Payment]...
- Anonymous6 years ago
Can you share a sample file?
The basic solution would be to just have a simple sum formula:
Payment Amounts = CALCULATE( SUM(Table[Payment]) )Then use the category column in the legend section of the pie chart. That should give you the pie chat that you're looking for.
Anonymous
6 years agoNot applicable
Can you share a sample file?
The basic solution would be to just have a simple sum formula:
Payment Amounts =
CALCULATE(
SUM(Table[Payment])
)Then use the category column in the legend section of the pie chart. That should give you the pie chat that you're looking for.
- bob576 years ago
Helper IV
Thank you! That does solve my problem. I now understand that there is no need to worry about the addition of new categories. I'm new to DAX and Power BI so sometimes the simple things are not so simple.