QlikView documentation and resources.
Inter-Record Functions:
These functions are used when a value from previously loaded records of data is needed for the evaluation of the current record.
For Example ,will Take Sample Table and Perform all the Inter - Record Functions ,
Table: LOAD * INLINE [ Variant, Customer, Sales S1, Wilson, 12 S2, Johnny, 55 S3, Jenny, 6 S4, Mary, 4 S4, Rob, 33 S5, Dave, 44 ];
(Copy and paste below code into the edit script window and reload then at Front end
remember to sort dimension and expression by load order)
1.Field Functions:
A) Field Index :
Syntax: fieldindex( fieldname, value )
e.g. the field name must be enclosed by single quotes.
This is like vLookup.
Example:
From this above table Field Index ,
FieldIndex('Customer','Jenny')
Output:
B) Field Value :
Syntax: fieldvalue( fieldname, n )
Example:
From this above table Field value ,
FieldValue('Customer',2)
Output:
C) Field Value Count:
Syntax: fieldvaluecount ( fieldname )
Example:
From this above table Field value Count ,
FieldValueCount('Customer')
Output:
2.Above Function:
Syntax: above( [ total ] expression [, offset [,n ]] )
From the Above Data Following will be the Outputs,
Sum(Sales):
Above(Sales):
3.Below Function:
Syntax: below( [ total ] expression [, offset [,n ]] )
From the Above Data Following will be the Outputs,
Sum(Sales):
Below(Sales):
4.Before Function:
Syntax: before( [ total ] expression [, offset [,n ]] )
Sum(Sales):
Before(Sales):
5.After Function:
Syntax: after( [ total ] expression [, offset [,n ]] )
Sum(Sales):
Before(Sales):
6.First Function:
Syntax: first( [ total ] expression [, offset [,n]] )
Sum(Sales):
First(Sales):
7.Last Function:
Syntax: last( [ total ] expression [, offset [,n]] )
Sum(Sales):
Last(Sales):
8.Rowno Function:
Syntax: RowNo( [ total ] )
Rowno():
9.No Of Rows Function:
Syntax: NoOfRows( [ total ] )
NoOfRows():
10.Column No Function:
Syntax: ColumnNo( [ total ] )
Column No():
11.No Of Columns Function:
Syntax: NoOfColumns( [ total ] )
No of Columns()
12.Dimensionality() Function:
Syntax: dimensionality ( )
Example:
For a pivot table with three dimension columns to the left the following would be returned:
3 for all ordinary data cells
2 for 1st level partial sums and entries not expanded in the 3rd column
1st for 2nd level partial and entries only expanded in the 1st column.
0 for grand total cell.
Dimensionality():
Thus,These all above Functions will Come under Inter Record Functions Particularly at front end.
Please Find the Attached Complete(Inter-Record Functions.QVW) Application.
Hope this Helps in understanding these functions,
Thanks & Best Regards,
Hirish.V
Very useful thank you!
Thank You Robert_Mika .
useful document..Thanks for sharing
Very useful, thanks for sharing Harish.
Harish thanks for sharing.Useful info
thx a lot. nice work!
nice
very useful ThankYou hirishv7
Its very useful for beginners.