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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
kAOUTAR1
Contributor
Contributor

Visualization data

Hello 

How i can transform data From table to textbox.

I want convert each line of my table to a textbox with all information.

Anyone have an idea .

Thanks 

3 Replies
jbhappysocks
Creator II
Creator II

Hi

It depends a little on what you have in your table. 

 

If you just have dimensions:

=concat([Dim1]&[Dim2]&[Val1]) creates a textstring with all your data

=concat(distinct [Dim1]&' '&[Dim2]&' '&[Val2],chr(10),4) creates something that looks more like your table, with space and line breaks

jbhappysocks_0-1624345001968.png

But if you have a measure in your table, I think you must make the calculation in the script.

If we use Sum(Val1) instead of just Val1, and add a line, you would get this:

jbhappysocks_1-1624345371200.png

Add something like

join (Data) load Dim1,Dim2, sum(Val1) as Val2 Resident Data Group By Dim1, Dim2;

to your script and use 

=concat(distinct [Dim1]&' '&[Dim2]&' '&[Val2],chr(10),4)

in your text box to get

jbhappysocks_2-1624345482244.png

 

 

 

kAOUTAR1
Contributor
Contributor
Author

Thanks for your answer

I have only dimensions, can you tell me where i have to type this script. I'm beginner and I just start to use qlicksence. 

 

jbhappysocks
Creator II
Creator II

Absolutely

Drag a Text & Image onto you sheet. Don't press the + in the box, instead you want to add a measure, there you enter the script.

(My Qlik is in Swedish, but you can see here where to do it)

jbhappysocks_0-1624356006129.png

=concat(distinct [Dim1]&' '&[Dim2]&' '&[Val1],chr(10))

chr(10) creates the line break

The 4 in the end in my original script was not supposed to be there, don't know how it ended up there, so don't try to understand it 🙂