pivot table

Hi, please how to create a pivot table on looker

Solved Solved
0 3 9,249
1 ACCEPTED SOLUTION

3Easy
New Member

Yes, very possible. The modern Table visualisation in Looker (not the Table (Legacy) visualisation) will do this, when you check ☑️ Subtotals at the top of the Data table.

You would prepare your Data table with three dimensions (two dimensions you want for your rows, and a third dimension you want for your columns, which you’ll pivot on), and one measure (to fill in the table). The second dimension will get the subtotals.

6f30e039-79ec-4684-8d84-a088d4708c8c.png

This is covered in the documentation for Table Chart Options, specifically in the section for Data Bar Options and Subtotals. Hope this helps.

View solution in original post

3 REPLIES 3

Hi @tatuspark,

Do you mean pivot an explore or do you mean you want to completely pivot a sql table in Looker? If you want just to pivot and explore, you can hover over the dimension you would like to pivot by and click the pivot icon. In the new field picker it appears like two arrows that form a right angle. In the older versions of looker the icon says pivot. 

98aedc81-d918-403e-905c-942594ad50f4.png


This video has some more details. 

Please let me know if that works!

Thanks,

Eric

Hi @tatuspark,

Do you mean pivot an explore or do you mean you want to completely pivot a sql table in Looker? If you want just to pivot and explore, you can hover over the dimension you would like to pivot by and click the pivot icon. In the new field picker it appears like two arrows that form a right angle. In the older versions of looker the icon says pivot. 

98aedc81-d918-403e-905c-942594ad50f4.png


This video has some more details. 

Please let me know if that works!

Thanks,

Eric

@Eric_Lyons  

i want to do a pivot table like this on excel is this possible with looker

6314b33a-4f88-41e7-8be9-e9893d69d8ba.png

3Easy
New Member

Yes, very possible. The modern Table visualisation in Looker (not the Table (Legacy) visualisation) will do this, when you check ☑️ Subtotals at the top of the Data table.

You would prepare your Data table with three dimensions (two dimensions you want for your rows, and a third dimension you want for your columns, which you’ll pivot on), and one measure (to fill in the table). The second dimension will get the subtotals.

6f30e039-79ec-4684-8d84-a088d4708c8c.png

This is covered in the documentation for Table Chart Options, specifically in the section for Data Bar Options and Subtotals. Hope this helps.

Top Labels in this Space
Top Solution Authors