29 Replies Latest reply: Dec 18, 2014 6:58 AM by Shaila Tyagi

# Table Cal help???

Hi Folks ,

See below:

I'm using pivot table , from level1 to Level 5 name are my dimensions and Quantity and Price are expressions .

I'm simply calling Quantity  and Price fields as expression .

Problem here is I'm getting duplicates numbers or values see below :

And If I'm calling only Level 1 and Level 1 Name as dimension and Quantity as expression I'm getting only single value .

My requirement here is to show all levels with there respective names as in image but Quantity and Price figures should not repeat.

Any Suggestion???

Thanks,
AS

• ###### Re: Table Cal help???

Try with

Sum(price)

sum(qty)

as expression

let me know

• ###### Re: Table Cal help???

sorry not working.

Thanks,
AS

• ###### Re: Table Cal help???

Confused ...can you post a sample or come in more words.

• ###### Re: Table Cal help???

Hi Sujeet,

Here for number "1024936001"  in Quantity I'm getting duplicate values like 1700, 1700

Thanks,
AS

• ###### Re: Table Cal help???

Hi Sujeet

Not sure if we can do this with  Dimensinality() function. I tried but no results.

Thanks

AS

• ###### Re: Table Cal help???

Also in my previous comment see the image , each number is having some relation on different level . See color combinations .

Thanks,

AS

• ###### Re: Table Cal help???

Hi Amit,

IT seems you have 1-N (one to many relation ship)  i.e for Level1 you have 2or more values for other levels.

You will  get two values if you take all levels as dimensions

• ###### Re: Table Cal help???

Saumya,

Yes u are right I do have 1-N relations and that's why i m getting duplicates .

If I restrict this to only one level I'm getting perfect result but user want to see all levels with   and I'm struggling here.

Thanks,

AS

• ###### Re: Table Cal help???

Option1) Use Pivot Chart showing only Level1 and quantity.Once user clicks on + sign he can check other levels(but this will show duplicates in the end result)

Options2) You may have to change the script using GroupBy function

Option3)Try using other levels in expressions instead of Dimensions(this might get you null values)

• ###### Re: Table Cal help???

Thanks Saumya but I have already tried all these suggestions .

Thanks,

AS

• ###### Re: Table Cal help???

What kind of ouput you want?

• ###### Re: Table Cal help???

Should be based on level 1 0nly but need to show all other levels too.

• ###### Re: Table Cal help???

1)You need only one row with all levels?

2)Both rows but result displayed only on one row?

• ###### Re: Table Cal help???

Only one row with all levels.

Thanks,
AS

• ###### Re: Table Cal help???

That should not be done anyways users want it so

For Level5 as Dimension -?Supress Null.. you will get your output

• ###### Re: Table Cal help???

HI Amit,

Try like this

Dimension: Level1, Level1 Name

Expression: Maxstring(Level2), Maxstring(Level2 Name),..............................

When you use MaxString it will pull only value even you have 1 to many values.

If this is not you are expression then come up sample output that you are expecting with this 1 to many data.

Regards,

Jagan.

• ###### Re: Table Cal help???

Sorry Jagan,

not working.

Please see the attachment  for desired result.

Thanks,

AS

• ###### Re: Table Cal help???

Hi Amit,

You can create a customized table,

A list box for dimensions,

Level 1

Level 2

Level 3

Level 4

and when you select here a dim Level 1,Pivot table show Level 1 data (as per your desired result)

like wise select Level 2, it shows Level 2 data and so on.

• ###### Re: Table Cal help???

Thanks Shaila, I have already suggested this option to my client

But my user want to see this as I mentioned in my attachment.

Thanks,
AS

• ###### Re: Table Cal help???

as you show level 1 dim and expression, then

do you want same thing for level 2 ,

it must comes below level 1 or after price column of level 1?

I mean from where Level 2 info start ?

• ###### Re: Table Cal help???

It should be in this order:

Thanks,
AS

• ###### Re: Table Cal help???

I guess you will have to use text box and show them in one text box each.

• ###### Re: Table Cal help???

aggr(only(Quantity), MaterialIDL1)

• ###### Re: Table Cal help???

No man all blank

• ###### Re: Table Cal help???

just 1 more time show your desired table data, with level 1 and level 2 (not with level 1 only)

• ###### Re: Table Cal help???

Thanks,

AS

• ###### Re: Table Cal help???

Result should be :

1024936001- For this material number against all levels

Thanks,

AS

• ###### Re: Table Cal help???

its not easy,

but if you show partial sum for level1 then this value is same in both the tables.

i

• ###### Re: Table Cal help???

I think It can't be possible that ,

If we add level 2 level3... in desired result table then your desired result data will be definitely effected .

you have to clear it more.