Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
alespooletto
Creator II
Creator II

Limit a boxplot for top n categories by measures

I have this excerpt of data that can be used to create a boxplot: 

// Caricamento della tabella del Boxplot
BoxplotData:
LOAD 
    Categorie, 
    [First whisker], 
    [Box start], 
    [Center line], 
    [Box end], 
    [Last whisker] 
INLINE [
    Categorie, First whisker, Box start, Center line, Box end, Last whisker
    "Tablet AGV", 929.266666666667, 929.266666666667, 929.26667, 929.266666666667, 929.266666666667
    "Smartcard", 748.366666666667, 748.366666666667, 748.36667, 748.366666666667, 748.366666666667
    "Notebook", 720.583333333333, 720.583333333333, 720.58333, 720.583333333333, 720.583333333333
    "Office", 27.9833333333333, 217.2609443788, 674.21667, 1131.1726388955, 1320.45
    "Cuffie", 303.9, 303.9, 303.9, 303.9, 303.9
    "iPad", 167.533333333333, 167.533333333333, 167.53333, 167.533333333333, 167.533333333333
];

// Caricamento della tabella con le Durate Totali
DurataTicket:
LOAD 
    Risorsa, 
    Categorie, 
    Durata_Totale 
INLINE [
    Risorsa, Categorie, Durata_Totale
    "Mor", "Posta", 446.55
    "Riz", "iPhone", 1278.5
    "Riz", "Cuffie", 303.9
    "Riz", "Docking Station", 100.8666667
    "Riz", "Monitor", 76.6
    "Riz", "Notebook", 720.5833333
    "Riz", "Smartcard", 748.3666667
    "Riz", "Carta inceppata", 0.166666667
    "Riz", "Non stampa", 2.916666667
    "Riz", "Tablet AGV", 929.2666667
    "Riz", "Tablet Muletti", 25.3
    "Riz", "CRM", 53.48333333
    "Riz", "DriveTools", 51.71666667
    "Riz", "Internet", 95.38333333
    "Riz", "Jabber", 2.55
    "Riz", "Office", 1320.45
    "Riz", "Posta", 2591.683333
    "Riz", "SAP", 1078.266667
    "Riz", "Online Support", 99.68333333
    "Riz", "iPad", 167.5333333
    "Vit", "Office", 27.98333333
    "Nes", "Controllo accessi", 69.85
];

What I would like to receive is a boxplot graph that has only the top 3 boxes with the highest number of time spent for them ,and put the rest in an averaged out boxplot on its own. 

 

Similar to this graph, where the 5 bars represent the top categories, and an Others bar represents the average of the remaining categories: 

alespooletto_0-1738139068174.png

 

Labels (1)
1 Reply
alespooletto
Creator II
Creator II
Author

@JandreKillianRIC  Hello, here's the data. I hope it's extensive, let me know if you need anythign more! Thanks again for looking into it