Field, Product Category has values “Cookware”, “Others”, “Personal Care”.
In order to sort Product Category to show “Others” as the last item, calculated field productCatSort is created as “ifelse({Product Category}=‘Others’,‘ZZZ’,{Product Category})”.
However, using productCatSort as Off-visual field for sorting, “Min” is not available for Aggregation (only Count and Count distinct are available).
Please check if this helps. This is on a Pivot-Table. I am not sure which visual you are using this on. If this does not help you need to explore further.
Off-Visual sorting has only the Count and Count Distinct. But by including your sort column in the visual gives you the ability to sort by dimensions values.
hi @Giridhar.Prabhu
I am using Vertical Bar Chart. X-axis is Product Category, values is sum(Sales). Any idea how to add productCatSort to facilitate sorting and at the same time, not showing it?
I reviewed this and saw that the hide option is not available in the Vertical Bar graph. Unfortunately, the off-visual field sorting is going to sort as a measure but your intention is to sort based on the alphabetical order.
You could for now use your calculated field and instead of ZZZ try “_Others” as the value and use that field in the Vertical Bar Chart. So it should show as the last value and will not be an eye sore. Its at best a work around.
I understand it is string, but if we rank this based on the same field, we can generate a integer calculated field and use that up. I am not sure about your dataset, but can think of trying something like
I presume you already solved this issue, but if not I think the issue is that the additional dimension you brought into the visual was not factored in the rank.
My example below has Region from the small multiples. You need to change it to the specific dimension in your case