BusinessObjects Board

Creating a 'All' level

Hi All,

I have data in the following format

Region Subregion 2007 2008
R1 S1 $xx $xx
R1 S2 $xx $xx
R2 S1 $xx $xx

I have used a filter component for the user to choose Region and Subregion. The requirement is to have one more entry, with value ‘All’ from both Region and Subregion which will show the aggregated $ amount.

Should the source data be modified to include this entry or is there a way out to do this with Xcelsius tool itself?
Your thoughts pls

Thanks
Meena


meenaj (BOB member since 2005-01-12)

Is there a reason you can’t use a SUM() function in the Excel model?


cashworth (BOB member since 2005-02-09)

I guess you have to do it in excel. Crystal Xcelsius is just a prensetation layer and is not good for calculations.


dongtao :cn: (BOB member since 2007-10-09)

More to the point, it should be done in Excel, to get the most out of Xcelsius you need to get your head around manipulating data in the underlying Excel model.


cashworth (BOB member since 2005-02-09)

Hi, you can use something like a concatenation between your filters and in a new column you can make a formula in which you put 1 if the concatenation is equal to your filters and 0 else. use this column in a combobox and that’s it. be ensure that the default value of your combo box will be 1.

Cheers


Luca Spinelli :it: (BOB member since 2008-08-27)

Meena,

This can easily be accomplished using a simple crosstab in excel, please see the URL below showing how to hand build the crosstab. Once the crosstab is built then you can easily get your sums accross your regions/subregions. I included your example in a xlf I did, please see the attached. Hope this helps you out.

https://bobj-board.org/t/115833/5

Thanks,
Jeff
CrossTabExample.zip (6.0 KB)


Jefftommy07 (BOB member since 2007-12-05)

Hi,

I too am trying to add the ALL level to the filter…find myself stuck

Raw data I have is something like this

Col1 Col2 Col3
Crew A 10
Crew B 20
Crew C 30
Non Crew D 40
Non Crew E 50
ALL

I need to feed Col1 as label vaues to a combo box. add ‘ALL’ to that list.
The combo box is feeding a List builder. Hence when the user selects ALL from the combo box the List builder source is populated with A, B, C, D, E.

Any suggestions or examples would be appreciated.

Thanks


zephyrous (BOB member since 2007-01-12)

Hi,
look at my suggestion.

X col1 col2 col3

  • All     All     All
    val    val2   val3
    val4  val5   val6
    

Use the filter with “Filtered Rows” condition and use the labels as the source.
Then send the result on a single cell (I call colX for this example).

In the X column you need to set a formula like =if(or($col$X=“val”,$col$X=“All”),“X”,"").

You’ll have a column with X and BLANKS.
Now you can create your filter using a combobox in which you’ll copy your entire table, including the X column in a result table.
NB: you need to set as X the header and assign this value as a defalut for your Xcombobox.

The All level is done!!

If I was not clear just let me know, I’ll create a sample on Xcelsius (v. 2008 SP1).

Hope this helps.


Luca Spinelli :it: (BOB member since 2008-08-27)

Hi Luca,

I would appreciate if you could attach an example.

Thanks


zephyrous (BOB member since 2007-01-12)

Sure,
I did a basic sample, easy to use. Please, Try it and let me know if you like my solution.

Enjoy

sample all level.zip (43.0 KB)


Luca Spinelli :it: (BOB member since 2008-08-27)

Hi,

It is a good example.

Thanks


zephyrous (BOB member since 2007-01-12)

Hi

i have a couple of questions based on this example.

Rows are not filtered in the combo box based on the value in the combo box.

Eg: this is my data

LOB PF FL
ALL ALL ALL
CG BE CA
CG BE CA
CG BE GG
CG DR BCD
CG DR BCD
CG DR BCD
CG DR BCD
RC FS CA
RC FS CA
RC FS CA
NI FR CA
NI FR CA
NI FR CA

Based on the value selected ‘ALL’ in the combo box , you will get all the rows, but When I select CG then PF Combo box should show only BE AND DR, but PF combo box shows all the VALUES BE, DR,FS,FR. How can I acheive like this.

LOB PF FL
CG BE CA
CG BE CA
CG BE GG
CG DR BCD
CG DR BCD
CG DR BCD
CG DR BCD

-Thanks


gmoorthyp (BOB member since 2005-08-29)

Hi,
so you need a cascading filter… here a quick sample I have done for a training at a customer. please notice that I was only using two filters but it is easy to change from 2 to 3 filters.

Hope this helps,
all cascading filter sample.zip (21.0 KB)


Luca Spinelli :it: (BOB member since 2008-08-27)

HI

I Tried with three filters , it does not help to me, can you give one best example using my data in the prevous post. it’s helpful to me.

Thanks


gmoorthyp (BOB member since 2005-08-29)

Hi,
of course I can send you the solution, but don’t you think you did not try enough to solve it? I sent a sample that uses 3 filters instead of 2. it means you only need to replicate the same logic to the filter 3 and modify a bit the IF formula that manages its labels.

Can you explain me what you cannot understand to complete this? It is better if I help you with words instead of providing you a complete solution that makes you think less.

So can you tell me where you have the error? can you provide any file to check?

Hope this helps,


Luca Spinelli :it: (BOB member since 2008-08-27)

HI

Thanks for your help, I am attaching my file for your refrence.

-Thanks


gmoorthyp (BOB member since 2005-08-29)

Hi,
here the solution with your data ;-)!

Hope this helps,
SAMPLE_v2.1.zip (7.0 KB)


Luca Spinelli :it: (BOB member since 2008-08-27)

In combo 2 and Combo 3 are showing always All, but it’s not show other values. I think we need to check the forumulas combo1, comb2, combo3 .

these formulas are giving combo1 is giving 0 and combo2 and combo3 is giving always ALL.

-Thanks


gmoorthyp (BOB member since 2005-08-29)

Sorry small error while playing with it. now in the previous message I uploaded the correct one.

cheers,


Luca Spinelli :it: (BOB member since 2008-08-27)

I think you uploaded the same old logic, Please upload correct one.


gmoorthyp (BOB member since 2005-08-29)