on 12-23-2014 8:16 AM
Hi Expert,
I have one requirement remove prefix zero in dimension.
Example:
dimension:Plant
00004567
0005673
0023GTY
003TG/ER
EXPECTED OUTPUT;
Plant:
4567
5673
23GTY
3TG/ER
May be this will be ideal solution.
1. Dimesion Name is Plant
2. Startposition= If Substr([Plant];1;1)<>"0" Then 1 ElseIf Substr([Plant];2;1)<>"0" Then 2 ElseIf Substr([Plant];3;1)<>"0" Then 3 ElseIf Substr([Plant];4;1)<>"0" Then 4 ElseIf Substr([Plant];5;1)<>"0" Then 5
3. final Output=Substr([Plant];[ Startposition];Length([Plant])-[ Startposition]+1)
This will help like:
000546 will be 546 ,
0005460 will 5460. (if we use leftrim and replace function will be you only 546)
Please let me know if u have need any clarifications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
=LeftTrim(Replace([Plant];"0";""))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use Replace function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.