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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Field Index

I have a table like this. I have to get the first product from the table using FieldIndex. i.e. I have to show chart for each product seperately for different month. I can't hard code it and use calculated dimension as " if(Product='Product 1', Product) " as my chart has to be dynamic so that even if the product name changes it works. So is there a function which identifies the product present in the Product column. FieldIndex is one but i am not able to use it as i don't know its syntax. Any suggestion ?? 

Thanks in Advance

ProductVolumeM1VolumeM2VolumeM3VolumeM4VolumeM5
Product 1101213108
Product 21556912
Product 385979
Product 412981211
Product 568141214
1 Solution

Accepted Solutions
swuehl
MVP
MVP

If you don't know the syntax, just look it up in the Help file (F1 is your little helper for that). I think you need to look for fieldvalue() instead of fieldindex(), since the value of the field is what you are interested in, right?

I believe it will look like

=if(Product=FieldValue('Product',1),Product)

View solution in original post

4 Replies
swuehl
MVP
MVP

If you don't know the syntax, just look it up in the Help file (F1 is your little helper for that). I think you need to look for fieldvalue() instead of fieldindex(), since the value of the field is what you are interested in, right?

I believe it will look like

=if(Product=FieldValue('Product',1),Product)

lironbaram
Partner - Master III
Partner - Master III

please check attach file

hope it gives you any help

Not applicable
Author

Thanks Swuehi.. It works

Not applicable
Author

Thanks for  your help Liron