Heating and Other
Maybe you need to create a report that will contain the "N" best / worst item + one item interpreting the sum of those in the "N" best / worst no . Possible steps below. 1 / Determine the order of items to determine the sequence of items according to the indicators you can use the function RANK (), then according to this report Sort the column. 2 / Views "N" best of the rest + Add new column that will contain the calculation of separating " Heating "from other items, such as: CASE WHEN Rank (Prodej. "Yield") <= @ {TopX} {5} THEN Geografie.Stat ELSE 'Other' END Where: RANK (Prodej. "Yield") column is order items TopX @ {} {5} - "TopX" is a Presentation Variable and {5} is the default value (in case you want to let the user dynamically change the value of "N", then it is advisable to use the Presentation Variable - otherwise the value may be constant) 3 / Group podsoučtyAdd new column that will include a calculation to determine podsoučtů (formula is similar to the previous, but instead returns the item name or variable text "Other"): CASE WHEN Rank (Prodej. "Yield") < TopX = @ {} {5} THEN 'Top TopX @ {} {5}' ELSE 'Other' END 4 / Table of values to display when display values, use the pivot table. The lines use computed columns - "Group" (set attribute "Hidden" and calculate the sum) and "Branch". Exclude the original column dimension and the "Order". 5 / Graph to display the values to display values, select as in the case of a table computed column "Branch" (ie not the original "Stat"). Erik Eckhardt.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfDWbpdHoGxKCHN7nE-5zblgZT2pqdGYgooWQuNfLIgVyeZmIx1d4D6xjpuxFZ3z2LcHvEpkkWxjrZP5mjdA23Kt0sOeJP28mZTdrEOog0asDzcP-cqTHR10LxOePLiqmW0oY5YtlNYx0/s400/01_topNaRest.JPG)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPfmjbqivy_JRyGakpaNyt9Ve1ugTFn5Y_2Kb_qBCFhPvRJraVZ-8phdmV2oFv2c-Npyq3NGrtghS_IBmTpy0WxQfa4XX2T_UGTnsjIt2_ixDJy76_rGXE5SzVjmL2tGi3ARZxBmKoKLg/s400/02_topNaRest.JPG)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhqFZMANSqIbjRNfDb9KMyWxZm9qfPnUP0CDtFAigBxtNUcw6Oipj1LzeHUCqH9LTvKuExHIobToHQ3JLzbxBOikTErcXgSewgktpCCsUA1HzJA-WePOnuF5LOMsnQ-_wBgADDNtD9T3w/s400/03_topNaRest.JPG)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRHA45YBxk90f6VIPU09yRLTnYxRZQcdyROg9rk5n0X7Hwc6wjrWmgqm7xEYhYu8zSoKKzxMvc77uZshOg-3-e1e7BCeJBPkgp4o-gg-yoM4eiHb2Wsmmsd6l7-DdD-xFkrDkUFRQBtmE/s400/04_topNaRest.JPG)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjInTwbkU_MkwuM_fErGu-0fOhgYJhCgoVMPK6ZOriyAZ9NQekVg_RosTxum0ATBazfqX6r0WzsGLaD9867Tc0kS4puC4VAXuGKYimLY4Vx-Igz3BYumKONbA3m0Eg9nTthCUN4rJ3XafA/s400/05_topNaRest.JPG)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9AjDrA_hkiTfbEdJPZBmyXsT2ujv77F4zszQBRBsibW48neJdLZgeqnQ50eeCHGmMO-Osc2onfJNJO_oLe4F1wLXBqFXg2tW5wdwVViG3GyXP6iHEKL7BmENwybTluzfuZZuKyImPrVU/s400/06_topNaRest.JPG)