Hi QuickSight Experts -
Can someone please help me calculate median of sales_amt in a year/week (ignoring duplicate entries for each sales_id and sales_amt.
.
I tried Notion β The all-in-one workspace for your notes, tasks, wikis, and databases. 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
Calculated_Fields
- Distinct Count ==== distinctCountOver({sales_amt},[{sales_id}],PRE_FILTER)
- Ifelse Rank ====
ifelse( rank([{sales_amt} ASC], [{sales_id}], PRE_AGG) = 1, {Distinct Count}, NULL )