Just gimme the code! Here’s an example of a percent of the total group/pivot:Documentation Index
Fetch the complete documentation index at: https://lightdash-work-with-ai-section-1771841038.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.

column_i_want_to_see_the_percent_of_total- this is the column that you want to see the percent total of. In our example above, that was thesum of profit.column_i_want_to_group_by- this is the column that you want the total to be grouped by. In our example above, that was theorder date - month.
Here’s the SQL you can copy-paste to calculate the percent of the group/pivot total
Make sure to add percent formatting to your calculation
In theformat tab, make sure to update the format to percent so that your table calculation is shown as a percentage value (instead of a number).
