Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Autogeneration of a number at front end

Hello All,

How to generate a auto number at front end in qlikview?

I tried rowno() but its not working...

any other function?

Regards,

Balraj

28 Replies
Not applicable
Author

Use a function in the second parameter to count the number of items

eg Valueloop (0,count(distinct FieldName))

If this doesn't work, put the function in a variable, then use the variable.

EG variable1 =  =count(distinct FieldName)

dimension in chart = valueloop(0,variable1)

Erica

Anonymous
Not applicable
Author

Tried both the thing.

Repeating the records multiples time with 2nd options.

Not applicable
Author

Hi Balraj, could you describe in more detail what the issue is when you say

Repeating the records multiples time with 2nd options.


?what doyou get?



Erica

Anonymous
Not applicable
Author

This is what I had tried:

Variable=count(distinct(ID))

=valueloop(1,variable,1)

but it is assigning unique SNo to one ID multiple time say:

SNo  ID

1       101

2        101

3        101

like this.......................

Not applicable
Author

You could probably also use a rank function to get what you want then

=aggr(rank(total [ID]),[ID])

This would return the rank of the ID's and would be sensitive to selections.

Erica

Anonymous
Not applicable
Author

Not working!!

Giving garbage values....

Not applicable
Author

what is it giving?

Erica

Not applicable
Author

Hi,

Please try with Rowno(Total) in expression

Regards,

Joshmi

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Did you working with Straight Table?

If it so add RowNo() as expression and move it to the 1st place