Expand/Collapse datatable with total

Hi,

I am trying to build a table in dash that looks like the attached image.

I just want the ability to have multi-rows and be able to expand/collapse and see the total value. Is there a way I can achieve this?

Thank you in advance!