Qlik Code Replicate in QuickSight

@Prav If you have an Author Pro license, you can leverage AI-powered prompts to generate calculations for your specific scenario. This calculation can be achieved using LAC-A (Level Aware Calculation - Aggregation) and LAC-W (Level Aware Calculation - Window) functions in QuickSight. Sample calculations are available in the link below for your reference.