Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have one field
LOAD * INLINE [
MonthFrench
janvier
février
mars
avril
mai
juin
juillet
août
septembre
octobre
novembre
décembre
];
So, here i want to show number 1,2,3,4,....12 in list box. How?
If i use this
if(MonthFrench='janvier',1,
// if(MonthFrench='février',2,
// if(MonthFrench='mars',3,
// if(MonthFrench='avril',4,
// if(MonthFrench='mai',5,
// if(MonthFrench='juin',6,
// if(MonthFrench='juillet',7,
// if(MonthFrench='août',8,
// if(MonthFrench='septembre',9,
// if(MonthFrench='octobre',10,
// if(MonthFrench='novembre',11,
// if(MonthFrench='décembre',12))))))))))))
It will come, But i want to see only these values instead of Name months
If you want to replace MonthFrench, then may be this:
LOAD MonthFrench as MonthName,
RowNo() as MonthFrench
INLINE [
MonthFrench
janvier
février
mars
avril
mai
juin
juillet
août
septembre
octobre
novembre
décembre
];
How about this:
LOAD *,
RowNo() as MonthNum
INLINE [
MonthFrench
janvier
février
mars
avril
mai
juin
juillet
août
septembre
octobre
novembre
décembre
];
=num(Month(DateField))
Month is a dual function. It contains the text and the numerical value.
I have only Month Field in that what i need to do. If i am doing mapping getting error
What is your exact script?
Nothing there, In my script i have like below
LOAD * INLINE [
MonthFrench
janvier
février
mars
avril
mai
juin
juillet
août
septembre
octobre
novembre
décembre
];
Expected output is
Listbox
1
2
3
4
5
6
7
8
9
10
11
12
Use Sunny T suggestion.
In the List Object look for MonthNum.
If you are doing some mapping or so let us now.
Like this, right?
Do i need to change name, If i want to show same name of the field
Like below, Is this possible
LOAD *,
RowNo() as MonthFrench
INLINE [
MonthFrench
janvier
février
mars
avril
mai
juin
juillet
août
septembre
octobre
novembre
décembre
];
If you want to replace MonthFrench, then may be this:
LOAD MonthFrench as MonthName,
RowNo() as MonthFrench
INLINE [
MonthFrench
janvier
février
mars
avril
mai
juin
juillet
août
septembre
octobre
novembre
décembre
];