Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Revenue vs Target in Pie Chart

I have 2 tables (Transactions & Target), these 2 tables are related to a date table.

When I divide the sum of the [revenue] by the sum of the [target], I get a percentage value

for example: 164 / 630, I get 26%, which is totally fine.

When I try to put that onto a Pie Chart, I get 20% for Revenue & 80% for Target, which is totally fine as well, since Pie Chart represents "part of a whole"

Is there a possibility, that I have a Pie Chart that represents the 26%? which represents the Revenue in comparison to the Target.

  • Hi HEZZ, 

    You should know when you put two measure in chart, it will calulate percentage of total value in chart, so you will get 20%(164/(164+630)=20%). So if you want to get correct percentage, you could putthis value in Card or put this value in tooltip in chart to see whether it work or not

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Hi Anonymous ,

     

    Assuming that the #Total revenue to total target% is a measure, just do a new measure:

    Other = 1 - [Total revenue to total target%]

    Format as percentage and place both measure on your pie chart without any other option filled out on the pie chart.

     

    Should work as expected.

     

    Regards,

    MFelix

  • dax's avatar
    dax
    Community Support

    Hi HEZZ, 

    You should know when you put two measure in chart, it will calulate percentage of total value in chart, so you will get 20%(164/(164+630)=20%). So if you want to get correct percentage, you could putthis value in Card or put this value in tooltip in chart to see whether it work or not

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.