Function Description RowNo () returns the row number of the current row, in the data table loaded by QlikView. The value of the first line is 1. Note: This function has no parameters, but the brackets cannot be omitted. It can be used for Load scripts or Chart expressions. Example of an instance Script: SETThousandSep,; SETDecimalSep.; SETMoneyTh
Function Description RowNo () returns the row number of the current row, in the data table loaded by QlikView. The value of the first line is 1. Note: This function has no parameters, but the brackets cannot be omitted. It can be used for Load scripts or Chart expressions. Example of an instance Script: SET ThousandSep =,; SET DecimalSep =.; SET MoneyTh
Function Introduction
RowNo () returns the row number of the current row, in the data table loaded by QlikView. The value of the first line is 1.
Note: This function has no parameters, but the brackets cannot be omitted.
It can be used for Load scripts or Chart expressions.
Example of an instance script:
SET ThousandSep=',';SET DecimalSep='.';SET MoneyThousandSep=',';SET MoneyDecimalSep='.';SET MoneyFormat='$#,##0.00;($#,##0.00)';SET TimeFormat='h:mm:ss TT';SET DateFormat='M/D/YYYY';SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';BlogCount:LOAD*, RowNo()FROMC:\Users\zhaob001\Desktop\test.xlsx(ooxml, embedded labels);
Then load the result. The effect after loading is as follows:
Chart instance
We add a dial item to the instance to display the number of rows of the selected item.
Write in the expression of the dial
Then there will be the following:
Comparing the current row number 6 with the data in the first graph, we can see that the displayed row number is correct.
Note: When using expressions, pay special attention to the table corresponding to the current row. If the corresponding table is incorrect, the expected results will not be displayed. I will discuss special cases later.
Summary
This article summarizes the usage and functions of the RowNo () function. The script can be found directly in the article. You can download the Specific Data Source: Data Source xls