Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to get value on specific column on the chart?

Hi Colleagues,

I'm working to get one specific value (dynamic) from a chart (pivot tables or bar chart).

Basically I want to create a index line in the chart, but as the first value (Product in this case) can be different, I want a calculation always considering the first column, line 4 (final price).

Productabc
cost 1523
cost 2453
final cost976
Index        100           78           67

I would like to know if anybody has a good solution for it.

Thanks in advance,

Leandro Duarte

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try a

=(sum(Cost)/first(total sum(Cost)))*100

in this case.

Regards,

Stefan

View solution in original post

7 Replies
swuehl
MVP
MVP

You could probably try using chart inter record functions, please have a look into the help for full details.

I would try a combination of first() and above().

If you could post a small sample file here (via upload in advanced editor), I can try helping you with the syntax.

Regards,

Stefan

Not applicable
Author

Hi Stefan, please find enclosed the example data.

Basically, I need a index (comparison first column with the other column) for the total cost row only.

Please note, it can be dynamic, can be different the first column/period according to selection.

Thanks in advance,

Leandro Duarte

SunilChauhan
Champion
Champion

use

(sum(Cost)/first(column(1)))*100 in Index expression

Sunil Chauhan
swuehl
MVP
MVP

I would suggest this:

=(sum(Cost)/first(sum(Cost)))*100

See attached.

I assumed you want Product sorted by Total Cost desc?

Regards,

Stefan

Not applicable
Author

Hi Stefan and Sunil, it is working in this case, but if included more than one common field for the product for instance, the value is not appearing.

Please find enclosed the example.... any suggestion?

Thanks a lot

Leandro

swuehl
MVP
MVP

Try a

=(sum(Cost)/first(total sum(Cost)))*100

in this case.

Regards,

Stefan

llauses243
Creator III
Creator III

Hi Leandro,

This is my offer, pls to look .rar attached

Good luck, Luis