Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Split single Column value in Mutiple Columns to generate Pivot chart

Hi

We have a requirment where we need to divide a single Excel coulmn into mutiple columns while fetching data in qvd so that we can generate a pivot chart out of it

The data looks like

ObjectDescriptionActual AmountBudgetAvailableCommited
1NW0001XYZ100010222
A11101test200012365
WBS01test300044354
WBS02Test52223544
WBS03test464645354
A11102test354454345
WBS04test132134535
WBS05test789933257

and it should look like

Object Object1Object 2Header 4Header 5Header 6
1NW0001
1NW0001A11101
1NW0001A11101WBS01
1NW0001A11101WBS02
1NW0001A11101WBS03
1NW0001A11102
1NW0001A11102WBS04
1NW0001A11102WBS05
8 Replies
its_anandrjs

Hi,

Use subfield command for this.

Let me know if not working.

HTH

Regards,

Anand

Not applicable
Author

Hi Anand

Thanks for the reply but my requirment is some what different , the values are in a single columns but in different rows and i want to create a hirarchy out of it.

Not applicable
Author

Hi Anand

Thanks for the reply but my requirment is some what different , the values are in a single columns but in different rows and i want to create a hirarchy out of it.

Not applicable
Author

Hi Anand

Thanks for the reply but my requirment is some what different , the values are in a single columns but in different rows and i want to create a hirarchy out of it.

Not applicable
Author

Hi Anand

Thanks for the reply but my requirment is some what different , the values are in a single columns but in different rows and i want to create a hirarchy out of it.

its_anandrjs

Hi,

On application loading you have to define the such type of architecture that you want to define for object if the value of the object is fixed or not changeable.

HTH

Regards,

Anand

its_anandrjs

Hi,

You have to create a object like

if(Object = '1NW0001',Object) as object,

if(Object = 'A11101',Object) as object1,

if(Object = 'WBS01' or Object = 'WBS02' or Object = 'WBS03',Object) as object2

on the load script.

HTH

Regards,

Anand

Or
MVP
MVP

You should be able to do something along the lines of (excuse my pseudocode):

Load if(left(Object,1)='W',previous(ParentObject)), if(left(Object,1)<>'1',previous(Object)) as ParentObject, Object

From YourExcel;

Using "Previous" with a conditional should allow you to create an additional two columns which will contain the relevant value or values from the previous row. This assumes your hierarchy is three-tiered (otherwise you'd need more nesting) and that you have a condition for figuring out which hierarchy level each row belongs to. You may have to tweak the syntax some, but the concept should be sound.

Good luck.