Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey all,
I need to calculate the WTDPERC (weighted median) in Qlik for the following expression:
WTDPERC(([COMP5ACT] - [COMP4ACT]) / [COMP1], [SMI_CODE], 50, 0).
I would be grateful for any suggestions regarding a solution.
Thank you!
No idea what WTDPERC is and Google doesn't seem to know either. Could you perhaps provide sample data and expected results, or some other means of better understanding what you're trying to achieve?
Median of the expression ([COMP5ACT] - [COMP4ACT]) / [COMP1] weighted by SMI_CODE column
Maybe something like this:
median(aggr(avg(([COMP5ACT] - [COMP4ACT]) / [COMP1]), SMI_CODE))