Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sorting table with multiple columns

Hi All,

I need to create a Line and Stacked chart for which multiple columns will be derived using the following conditions:

Table name: Survey

Steps/Logic:

calculate the no. of surveys
Group by Support Group
Get the total count of rows
Sort the values by total responded surveys
Select only Top 50% = hence total rows/2
Take the 50% rows 
Sort it by highest % negative response 
Now display top 5 values in the chart 

 

Example data

 Group# of surveyNegative response %
A1480.68%
B671.49%
E195.26%
H382.63%
C372.70%
G7050.99%
D175.88%
F323.13%
H520.00%
L616.67%
K119.09%
N248.33%
I2010.00%
J1094.59%
M1301.54%
  • parry2k's avatar
    parry2k
    7 years ago

    Anonymous solution attached, look at table1 in attached, it has few columns and measures. you can play with it as per your need, didn't had much time to work on it thou but I guess you will get idea from it.

9 Replies

  • Anonymous will this "% negative response" will be aggregated for final output?

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello parry2k 

       

      Thank you for the reply. No, it won't be aggregated. Aggregation is by Group only.

      • parry2k's avatar
        parry2k
        Super User

        Anonymous  is this expected output?