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

Bar chart with Dual() value labels

Hi All, 

I am trying to create a bar chart where value labels should show text where available, or sum of values where there is value. The values look like something this

ClientMyValue
Aincluded 
Bexcluded 
A300
Cincluded 
A100
B200

 

In script I've defined them like this:

if(IsText("MyValue"), Dual("MyValue",0),  Dual("MyValue"* "USD Rate","MyValue"* "USD Rate"))) as "MyValue (USD)"

In the bar chart I have number formatting set as 'Measure Expression'. The measure expression I've tried:

=sum([MyValue(USD)])

=dual(text([Sublimit2 (USD)]),sum(num([Sublimit2 (USD)])))

=alt(text([Sublimit2 (USD)]),sum(num([Sublimit2 (USD)])))

and few other combinations, but I either get only text or only values.

Labels (3)
3 Replies
martyn_birzys
Creator
Creator
Author

anyone?

martyn_birzys
Creator
Creator
Author

bump

martyn_birzys
Creator
Creator
Author

Bump