Hi All,
I got below the requirements in SAC.
When I select dropdown Dimension1 It should display in Table as Flat hierarchy data and when I select Dimension2 it should display as Hierarchy and so on.

Could you please help me with solution? If possible with sample JS code
Thanks