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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Explaination for FieldValue() & FieldValueCount()

Hello Everyone,

Just need a simple explaination for following syntax:

let test=FieldValueCount('Call_Date');  //Counting distincting value of CallDate which is 99 in my case

Test:

load

min(FieldValue('Call_Date',RecNo()))-1 as MinDate,

max(FieldValue('Call_Date',RecNo())) as MaxDate

AutoGenerate FieldValueCount('Call_Date');

I have done some home work on both the fields and very much clear how FieldValueCount() works but still not able to interpret how FieldValue() fetching min & max value?

Please suggest how QV is working here with the combination of Fieldvalue() & Recno()...

Regards,

Balraj Ahlawat

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Here is the interpretation:

load

(FieldValue('Call_Date',RecNo()))-1 as MinDate,

(FieldValue('Call_Date',RecNo())) as MaxDate

AutoGenerate FieldValueCount('Call_Date');

If I dont specify min() & max() it would iterate and autogenerate till the max value of FieldValueCount('Call_Date') and display all the records of min and max date.

And If I do this:

Test:

load

min(FieldValue('Call_Date',RecNo()))-1 as MinDate,

max(FieldValue('Call_Date',RecNo())) as MaxDate

AutoGenerate FieldValueCount('Call_Date');

It will iterate all the records internally but will give min and max date only at the end

View solution in original post

4 Replies
settu_periasamy
Master III
Master III

This will also Help..

Missing Manual - FieldValue

Anonymous
Not applicable
Author

These threads I have already checked but didnt get my answer..

Anonymous
Not applicable
Author

Here is the interpretation:

load

(FieldValue('Call_Date',RecNo()))-1 as MinDate,

(FieldValue('Call_Date',RecNo())) as MaxDate

AutoGenerate FieldValueCount('Call_Date');

If I dont specify min() & max() it would iterate and autogenerate till the max value of FieldValueCount('Call_Date') and display all the records of min and max date.

And If I do this:

Test:

load

min(FieldValue('Call_Date',RecNo()))-1 as MinDate,

max(FieldValue('Call_Date',RecNo())) as MaxDate

AutoGenerate FieldValueCount('Call_Date');

It will iterate all the records internally but will give min and max date only at the end