Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Fixing data inside a column

Hi guys,

I have a column that shows data as follow:

Division
Brokerage Service Division (BSD)
Brokerage Services Division (BSD)
Brokerage Services Divsion (BSD)
Corporate
Corporate Financial Services
Corporate Headquarters
Gallagher Bassett (GB)
Gallagher Bassett(GB)
Gallagher Benefit Services (GBS)
International Brokerage
Not Available
Risk Placement Services
SMI Corporate International
Special Marketing & International (SMI)
Special Marketing International (SMI)
-

As you see the first three rows are the same but the person who entered them didn't do a good job so one of them has Services instead of service and one is missing I in Division.

Is there anyway I can fix this to be one row instead of 3 raws?

Like can I do an if statement to have one instead of the three?

Thanks for your help.

Alec,

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

Place the mapping table script above the Load statment for your current script.

View solution in original post

9 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

Hi, you should be mjore specific. Can't you go to the data source and change it there? Would you like to change is before loading your data or we can do it directly in your pivot? Where exactly are you showing this?

Thanks

Anonymous
Not applicable

Is there some kind of ID field connected to the Division?

You could do something like this IF(Right(Division,5)='(BSD)','Brokerage Service Division',Division)

I would put that in the script.

m_woolf
Master II
Master II

You can correct with a mapping table

alec1982
Specialist II
Specialist II
Author

Hi,

Thank you for your reply,

I think the best place to do is while loading the field in QVW.

load

ID,

Division,

Amount

from XYZ

Is there anyway I can add an if statement in here to change the value of the division.

Thxs,

Anonymous
Not applicable

Yes, just add  IF(Right(Division,5)='(BSD)','Brokerage Service Division',Division) As Division

It should work in your script.

m_woolf
Master II
Master II

SystemMap:
mapping load * inline [

Bad,Good
Brokerage Service Division (BSD),Brokerage Services Division (BSD)
Brokerage Services Divsion (BSD),Brokerage Services Division (BSD)
Gallagher Bassett(GB),Gallagher Bassett (GB)
Special Marketing & International (SMI),Special Marketing International (SMI)
.
.
.

];

Map Division using SystemMap;

alec1982
Specialist II
Specialist II
Author

Hi,

Thank you for your help.

If my script is like Office:

Load

ID,

Division,

Amount

from XYZ;

where should I add the above script and hpow can i call it from this load.

Thxs,

Alec,

m_woolf
Master II
Master II

Place the mapping table script above the Load statment for your current script.

alec1982
Specialist II
Specialist II
Author

Thxs so much!