Forum Discussion

bob57's avatar
bob57
Icon for Helper IV rankHelper IV
6 years ago
Solved

Eliminate "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]...
  • Anonymous's avatar
    Anonymous
    6 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.