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: 
Not applicable

Get avg($Field)

Hello,

I am designing a table based on ColumnNames. The target is to display all columns which are like '*LeadTime' as rows.

So i am using the dimensions as

=if(wildmatch($Field,'*LeadTime'),SubField($Field,'_',2))     -Workshop

=if(wildmatch($Field,'*LeadTime'),SubField($Field,'_',1))     -Previous Falg

I want to calculate average

So when i tried =avg($Field), it is not giving results as required.

2014-12-10_130154.png

Please suggest, how I can acheive this.

Thanks,

Deepa

15 Replies
Anonymous
Not applicable
Author

Can you attached your sample QVW

arulsettu
Master III
Master III

HI try this

=avg([$(=minstring($Field))])

Not applicable
Author

Please find attahced the sample QVW file for reference

Not applicable
Author

It always gives the average of min(filedname),

I am looking for average of filed name.

sorry..

anbu1984
Master III
Master III

=avg(Len($Field))

Not applicable
Author

Hi Anbu,

=avg(Len($Field))

it, considers average of the length of the field,

I am looking for average of field value

renjithpl
Specialist
Specialist

Hi Deepa,

Can you please show a sample output which you are expecting in an excel sheet.

Cheers

Ren

Anonymous
Not applicable
Author

Hi Deepa

If you are looking for avg length of your fields then you can use =sum(len($Field))/count($Field)

Not applicable
Author

Hi

I am not looking for the length of field names

I am looking to get the average of field values.

I want to evaluate the avg(Received_Beginning_Leadtime) for 1st row

avg(Beginning_Surfaced_Leadtime) for second row

Thanks