(5) RowNo () function in QlikView

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.