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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
noman212
Creator III
Creator III

Serial Number on Dimension

Hi Friends,

How can i add Serial number based on multiple dimension.

i want to do this on calculated dimension bases in a pivot table.

Awaiting your reply.

Regards

Noman khan

1 Solution

Accepted Solutions
sunny_talwar

Using the sample attached by joshua‌ (Thanks)

For dimension, you can also use this:

=Aggr(RowNo(), sku)

Right now the RowNo() will be assigned based on load order of sku, but if you are using QV12 and would want to sort sku in a particular order you can sort the sku within the Aggr() function

The sortable Aggr function is finally here!

Capture.PNG

View solution in original post

13 Replies
ajsjoshua
Specialist
Specialist

Hi,

use

=rowno() or rowno(total).

Regards,

Joshua.

ajsjoshua
Specialist
Specialist

Hi,

check this Row Counter in Chart

Chanty4u
MVP
MVP

Am not sure

Do you mean RowNo() and RecNo()?

RecNo( )

Returns an integer for the number of the currently read row of the source data table. The first record is

number 1.

RowNo( )

Returns an integer for the position of the current row in the resulting QlikView internal table. In contrast to

RecNo( ), which counts the records in the raw data table, the RowNo( ) function does not count records that

are excluded by where clauses and is not reset when a raw data table is concatenated to another. The first

row is number 1.

noman212
Creator III
Creator III
Author

Not working.

i have 3 dimensions

Category , Brand , and SKU..

Category = Perfume

Brand = body spray

          = ABC

          =  XYZ

BODY SPRAY's SKU

SKU =

  1. ABC
  2.           CDE
  3.           EFG
  4.              HIJ
  5.            XYZ
ajsjoshua
Specialist
Specialist

Hi,

rowno(total) should work for multiple dimensions .

if not provide some sample in excel.

noman212
Creator III
Creator III
Author

SCENERIO:

i have 3 dimensions

Category , Brand , and SKU..

Category = Perfume

Brand = body spray

          = ABC

          =  XYZ

BODY SPRAY's SKU

SKU =

  1. ABC
  2.           CDE
  3.           EFG
  4.              HIJ
  5.            XYZ

i want serial no. on SKU based on Brand

Not applicable

Try at script level & create like below,

Load *, autonumber(SKU) as SerialNo resident source;

Kushal_Chawda

Create the Expression as

=Rowno(Total)

ajsjoshua
Specialist
Specialist

Hi,

achieved both in exp and script

PFA