Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Srinivas
Creator
Creator

How to assign row number with time based

Hi All,

I want to assign row count with time based we need to assign row count like my out put way , Here my maximum time is 8/2/2015 so that is max count.

   

IDAction Creation_Date
123 - NAPositive8/1/2015
123 - NANegative8/2/2015

I am expecting Out put like below way :

    

IDAction Creation_Date Row
123 - NAPositive8/1/20151
123 - NANegative8/2/20152

Regards,

Srinivas

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

T1:

Load ID, Action, Creation_Date From TableName;

NoConcatenate

T2:
Load

     *,

     AutoNumber(ID&Creation_Date,ID) as Row

Resident T1

Order By ID, Creation_Date;

Drop Table T1;

View solution in original post

7 Replies
MK_QSL
MVP
MVP

T1:

Load ID, Action, Creation_Date From TableName;

NoConcatenate

T2:
Load

     *,

     AutoNumber(ID&Creation_Date,ID) as Row

Resident T1

Order By ID, Creation_Date;

Drop Table T1;

Kushal_Chawda

load * ,

AutoNumber(Creation_Date,ID) as Row

From Table

sujeetsingh
Master III
Master III

Use ROW no function with order by.

martyn_birzys
Creator
Creator

RecNo() as Rec

or

RowNo() as Row

maniram23
Creator II
Creator II

Hi Srinivas

you can try "Rowno()" function.

jonas_rezende
Specialist
Specialist

Hi, M srinivas.

Try.

tempTable1:

LOAD

ID,

Action,

Creation_Date

From TableName;

NoConcatenate

Table1:

LOAD

ID,

Action,

Creation_Date,

RowNo()          as Row

Resident tempTable1

order by Creation_Date // By default is asc.

Drop table tempTable1;

Hope this helps!

MarcoWedel

Hi,

one solution could be also:

QlikCommunity_Thread_185754_Pic1.JPG

QlikCommunity_Thread_185754_Pic2.JPG

QlikCommunity_Thread_185754_Pic3.JPG

hope this helps

regards

Marco