I tried Notion but it giving me unexpected result, not sure if i am missing something here. Below is unexpected result and calculated field logic - median outputs 1,1 instead of 125, 125
I was able to resolve this myself.
posting here steps
Step 1 - Derived median of sales_amt partition by sales_id, lets call sales_median_by_id == median({sales_amt},[{sales_id}])
Step 2 - On visual, took median of sales_median_by_id