i have a table like this
order_id | user_id | createdAt | transaction_amount
order_id as the id of the transaction, user_id as the user, createdAt as the dates, and transaction_amount is the transaction of each id order.
so this is the continue from this question how to display max, min, median, and average from tableau
on that picture, that is user_id and the right side are the frequency of transaction for each users. there's 3139 data.
so based on that solution i've made max min average and median from window calculation like this
for max WINDOW_MAX(COUNTD([Order Id]), FIRST(), LAST())
min WINDOW_MIN(COUNTD([Order Id]), FIRST(), LAST())
avg WINDOW_AVERAGE(COUNTD([Order Id]), FIRST(), LAST())
median WINDOW_MEDIAN(COUNTD([Order Id]), FIRST(), LAST())
so i put results for calculation on columns and rows are users_id
what i want is, how to convert that numbers into like this
so the min value(1), max value(12), average value (1.72), and median(1) value are only appears once, not appear many and confusing.