Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
sevvalk
Creator
Creator

I want to add row numbers to the beginning of the rows in the table.

I want to add row numbers to the beginning of the rows in the table. Rowno() doesn't work.

1 Solution

Accepted Solutions
sevvalk
Creator
Creator
Author

9 Replies
Chanty4u
MVP
MVP

Try this 

Load

    AutoNumber(FieldName) as RowNumber,

    YourOtherFields

From YourTable;

sevvalk
Creator
Creator
Author

Is there a way to do this on the page?

Gabbar
Specialist
Specialist

Can you share a sample SS like what do you want and if you want it in script or chart?

sevvalk
Creator
Creator
Author

i want it in chart

Gabbar
Specialist
Specialist

Like how, Rowno() Should work in charts, that why i asked for sample SS.

anat
Master
Master

Rowno() function will work in your case to generate numbers.

https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/Inter....

if not share the sample how you are trying to generate row numbers ?

Or
MVP
MVP

RowNo() has some issues, particularly when 0/null values are suppressed.

Chart-level scripting actually has a rare use case here - I've used the below to generate accurate row numbers.

// Row Numbers: Requires a measure named Row with a starting value of 0 or null(), name can be adjusted
Let P = HCNoRows();
For J = 1 to P
Put Row(J) = J;
Next;

hanna_choi
Partner - Creator
Partner - Creator

Hello Sevvalk

We can use row number in the table using rowno().

Do you need the result as below capture?
But, rowno() can not display TOTAL.

if you need others, Could you give us the sample data?

rowno.png

 

Best Regard

hanna.choi

sevvalk
Creator
Creator
Author

rowno(total)