T-SQL to DAX: Simulating PERCENTILE_CONT analytic function

PERCENTILE_CONT is used for calculating a percentile based on a continuous distribution of the column value. From ORACLE SQL documentation:The result of PERCENTILE_CONT is computed by linear interpolation between values after ordering them. Using the percentilevalue (P) and the number of rows…