sort/rank based on a subtotal of Sum in breaks

Hi all,
I’ve tried to search for the similar forums as below but came to no solution.

What I currently have in my report is a break on State, which shows Sales Revenue for the Stores in each states. e.g. the following:

California-Store 1-50K
-Store 2-50K
-Store 3-50K
SUM-150K

Canada-Store 1-10K
-Store 2-10K
-Store 3-10K
SUM-30K

Florida-Store 1-30K
-Store 2-30K
-Store 3-30K
SUM-90K

Based on the SUM for each States, is it possible to sort the states with the highest Sales Revenue first? Tht means the report will be sorted: California > Florida > Canada

I’m using WebI Rich Client 3.0. Please advise.
Thanks.


ccool2000 :malaysia: (BOB member since 2008-12-09)

This is the only workaround I have come up with.

  1. Create a rank object: Rank =rank([Sales Revenue];[State])
  2. Insert rank object preferably as a first column
  3. Sort rank object in descending order
  4. Break rank
  5. Hide the rank column

Hope it works for you.

Cheers,
Mhy


mhy_pie03 :philippines: (BOB member since 2009-02-05)

Hi mhy_pie03,

It works fine! However, I have problem trying to hide the rank column. Can I know how did you do it?

Cheers~


ccool2000 :malaysia: (BOB member since 2008-12-09)

It’s another workaround,

  1. reduce the column width to minimum (4)
  2. change the text colour to ur background coluor
  3. hide the boarders

BO doesn’t have HIDE option.


avetrivel :india: (BOB member since 2010-05-27)

Yeah, it’s just s workaround and the only way to hide it is change the background color, font color and border line. :cry:


mhy_pie03 :philippines: (BOB member since 2009-02-05)

Perhaps BO should come out with the hide option. That would be brilliant :slight_smile:

Thanks again~


ccool2000 :malaysia: (BOB member since 2008-12-09)

Hi,

One another option to hide can be use of alerter; using hardcoded expressions along with format the cell and keep text = " " in the alerter variable works. The field doesnt come up even in save as excel or pdf.

Ethan


ethaihunt (BOB member since 2010-10-07)

BO 4 is having conditional hiding feature… :smiley:


Vills :india: (BOB member since 2007-10-24)

Replying to this helpful post as it is the same situation I am in.

Like the original poster, I am ranking based on subtotal, then breaking on rank.

My question: in the break footer, I would like to display the rank (e.g. first break displays Rank 1, second break displays Rank 2). I get a #CONTEXT error when displaying the rank object in the break footer/header, and I cannot find the correct context formula to use for this. Can someone help?

Attachment 1 image: sort on rank object works correctly

Attachment 2 image: after breaking on rank, the breaks are sorted correctly, however the rank object returns #CONTEXT errors in break footer.

I would like the footer in first break to display “1” (for Rank 1), and the footer in the second break to display “2” (for Rank 2), and so on.
2_break_on_rank_context_error.png
1-everything_ranked.png


adamNYC (BOB member since 2012-10-16)