which creates all the buckets that I expect to see. But when I choose a product in my filter, the order of items in the legend is not correct:
I know that it has something to do with the main dimension "brand" that is somehow evaluated before the discountDiff classes is calculated.
I have also read in another discussion that the sorting is based on the measure number behind each bucket, which in this case is the number of sub brands represented by the discountDiff class.
I have tried manipulating the sort order of the discountDiff dimension with a set expression, but I have not managed to get it to work.