Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Clustered column chart (percentage)

Hi All! In the below graph, I want to show 'Achieved Qty' as a percentage of 'Target'. Eg:- For product D, I want to show 70% (i.e. 210/300) in the graph. Is there any option to do this or is ther...
  • skasper's avatar
    skasper
    9 years ago

    Hi Anonymous,

     

    you need to define your 'Achieved%' as a measure using e.g.:

     

    Achievement% = CALCULATE(SUM('Sales Table'[Achieved Qty]);'Sales Table'[SM Code])/CALCULATE(SUM('Sales Table'[Target]);'Sales Table'[SM Code])

     

    The measure needs to be formatted as '%'.

     

    The resulting chart looks like this:

     

    The visual settings:

     

  • skasper's avatar
    skasper
    9 years ago

    That's because you added a 'column', not a 'measure'. Makes a difference - as you can see. Make sure to add 'measure':