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

valueloop issue

Hi experts,
I'm trying to create a kpi metrics table as shown below

Header 1Header 2
Sales1000
Quantity10
Revenue1100

I tried to uuse valueloop and pick functions but failed to achive desired list.

Below are steps i followed

Create dimension1 : valueloop(1,3)

1st expression: Pick(ValueLoop(1,3),'Sales','Quanitity','Revenue')

2nd expression: pick(valueloop(1,3),sum(sales),sum(Quantity),sum(Revenue))

I'm getting only sum(Sales) value remaining two rows are blank, can you please let me know if I missed anything.

5 Replies
sunny_talwar

It seems to be working for me:

Capture.PNG

Not applicable
Author

Thx Sunindia,

not sure why I'm facing the issue,is it beacuse of varibles I'm using not direct column.

sunny_talwar

So you are using variables instead of directly using the expressions? But I have seen the variables working also, may be you need to tweak them to make them work. Can you share the file you are working on if its not too big or confidential?

ramoncova06
Partner - Specialist III
Partner - Specialist III

I was having the same issue by having this as a calculated dimension, if you switch it to the expression it works flawlessly

sunny_talwar

I used variable instead of directly using ValueLoop and it seems to be working well:

Capture.PNG