Pie Chart to show both Dollars and Percentage

Hi Looker Experts,

I wanted to show both the Dollars and Percentage in a single Pie Chart, like this below. Will there be any solution/suggestion on how to achieve this? 

If not, is there any option to have a Toggle selector to change from Dollars to percentage and vice-versa? 

22d39545-8e9a-4eb8-bdc6-f6b0e3e19f1a.png
Solved Solved
0 2 2,536
1 ACCEPTED SOLUTION

Hi Team,

I was able to achieve this using the ‘html’ concept in one of the measure as shown below: 

Even though its not showing up the % on top of the Pies/Sections, but at least it shows around the Chart. 

Still I would look for any solutions to show on top of the Pies.

measure: Total_Purchases_Hidden {
  label: "Total Sales Hidden"
  type: sum
  hidden: yes
  value_format: "$#,##0;($#,##0)"
  sql: ${ext_sell_dlr} ;;
  }

  measure: Total_Purchases {
    label: "Total Sales"
    type: sum
    sql: ${ext_sell_dlr} ;;
    html:
       <b>{{ Total_Purchases_Hidden._rendered_value }} </b> <br>  <b> {{ Total_Purchases_Percent._rendered_value }}  </b> </div>
      ;;
  }

4eb37048-2174-4629-a37a-59426aa04492.png

Regards!

View solution in original post

2 REPLIES 2

Hello Team,

Any possible suggestion here?

Regards!

Hi Team,

I was able to achieve this using the ‘html’ concept in one of the measure as shown below: 

Even though its not showing up the % on top of the Pies/Sections, but at least it shows around the Chart. 

Still I would look for any solutions to show on top of the Pies.

measure: Total_Purchases_Hidden {
  label: "Total Sales Hidden"
  type: sum
  hidden: yes
  value_format: "$#,##0;($#,##0)"
  sql: ${ext_sell_dlr} ;;
  }

  measure: Total_Purchases {
    label: "Total Sales"
    type: sum
    sql: ${ext_sell_dlr} ;;
    html:
       <b>{{ Total_Purchases_Hidden._rendered_value }} </b> <br>  <b> {{ Total_Purchases_Percent._rendered_value }}  </b> </div>
      ;;
  }

4eb37048-2174-4629-a37a-59426aa04492.png

Regards!

Top Labels in this Space
Top Solution Authors