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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Add Expression dynamically in chart.

Hi Friends ,

I have created the columns from values of fields and showed in the chart as expression. But if new values came in my field , then can it be automatically add to my expression .

9 Replies
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Can you provide more details? If you provide your case with example, perhaps we can find any tricky solution.

Regards,

Andrei

agni_gold
Specialist III
Specialist III
Author

   

NameRegionValue
AIndia10
BUS20
CUS30
DUK40
EIndia50
FUK60
Stright Table
DimensionExpression1Expression2Expression3
NameIndiaUSUK
A10
B 20
C 30
D 40
E50
F 60
agni_gold
Specialist III
Specialist III
Author

As you can see my source table structure is as , but I have make the Region values as columns . Now if any new region comes in my table the can it automatically added to my expression in straight table ?

crusader_
Partner - Specialist
Partner - Specialist

Hm... If expression 1,2,3 are equal... and we just change the region, than we can move second dimension to horizontal axis....

Check my example whether it acceptable?

Regards,

Andrei

agni_gold
Specialist III
Specialist III
Author

no what I am saying is that ,  iam only showing the below table in qlikview , and if in my source , a new value suppose Australia came , so can it be automatically added to my expression , because here India , US , UK are expression and Name is dimension.

   

NameIndiaUSUK
A10
B 20
C 30
D 40
E50
F 60
crusader_
Partner - Specialist
Partner - Specialist

Wait... In my example I added Germany to my dataset and it appears as column... You can add some new strings and will see that columns add and hide (if delete some rows)...

Expression always should be defined... So if you do not apply different calculation logic to every new expression, there is no reason to make 2,3,5 or more expressions... But if you're going to apply different formula for every new region this chart definitely requires maintenance...

Hope this helps you.

Regards,

Andrei

agni_gold
Specialist III
Specialist III
Author

Yes u r right , but i have multiple expressions , so when i want to do like you it changes all the expressions .

Your way is not possible.

Is there any other way , actually i have done with generic load , but i am facing the issue , what i have originally asked.

MarcoWedel

‌hi,

you could use a pivot table instead of a straight table.

regards

Marco

crusader_
Partner - Specialist
Partner - Specialist

Hmm.. Generic LOAD can add new fields to your original data set according to the values in some column,

but definitely will not help with charts...

In this case you could try create object via macro or define your chart on variables like was suggested here Re: Create a chart via the load script

Hope this helps.

Regards,

Andrei