Upload the sample CSV to your instance. Refer to the Data input tables guide for instructions.
In a new query tab, select all the dimensions. Every field except Pie Count should be selected when you’re finished.
On the Results tab, open the Options panel and enable column totals.
In the Session Count totals cell, click the … menu and select Total Calculation > Sum.
Format the Percent Of Total column to percentage and adjust the decimal places to your liking.
Your query should look like this:Note: To recreate this with your own data set, you’ll need to create calculations for Percent of Total, Slice Size, and Start Rotation. These formulas reference the columns as they are in the above screenshot:
Percent of Total - =B1 / SUM(B:B)
Slice Size - =B1 / SUM(B:B) * 360 // or Percent of Total * 360
Start Rotation - =SUM(D$1:D1) // The sum of all the previous values of Slice Size - if you are copying this formula, enter it on the second row to get it to apply correctly
Click Chart and select the Markdown chart type. Copy and paste the sample code below into the Markdown editor.