Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to force qlikview to start numbering of rows from user defined number ?

Hi All ,

How to force qlikview to start numbering of rows from user defined number ?

Example - Let Say we have 10 records In load script  .

   

AreaZoneDateSale
A1Z112/12/2017100
A2Z312/13/2017300
A3Z112/14/2017100
A4Z212/15/2017200
A5Z212/16/2017200
A6Z112/17/2017100
A7Z312/18/2017300
A8Z112/19/2017100
A9Z212/20/2017200
A10Z212/21/2017200

RowNo() as Row will create a field Row with value staring from 1 and last as 10

My requirement is to start Row value from 100 and last as 110

Thanks & Regards

Shekar

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Perhaps this?

$(Variable1) + RowNo()


Note - Here, Variable1 is input box. And the above expression should be expression?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

8 Replies
Anil_Babu_Samineni

Why not?

RowNo() + 100 as ID

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shekhar_analyti
Specialist
Specialist
Author

Hi Anil ,

What you have mentioned is hard coding 100 .. But i want an input box to enter that user defined number and once user enter number in input box then it should act .

Anil_Babu_Samineni

Perhaps this?

$(Variable1) + RowNo()


Note - Here, Variable1 is input box. And the above expression should be expression?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shekhar_analyti
Specialist
Specialist
Author

i was using same $(vTest)+ RowNo() in expression of straight table  and passing 100 in vTest using ip box , then all values are coming as 101

Anil_Babu_Samineni

Great

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shekhar_analyti
Specialist
Specialist
Author

i got it actually i was doing one silly mistake ..Gosssssh  i had added rowno() in dimesion as well which was hidden it seems ...
thank you Anil ...

pradosh_thakur
Master II
Master II

Hi Shekhar

if you are using more than one dimension you have to use rowno(total) instead of rowno(). May be that was the issue.

Anyways you got the answer so all well and good.

Learning never stops.
shekhar_analyti
Specialist
Specialist
Author

Thank you Thakur Ji .....