Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ahbzshk07
Contributor III
Contributor III

String to be displayed row-wise in straight table

Hi!


I am getting one issue on dashboard for straight table.


My variable vCurrrentSelections = Jahr:2015|Monat:Dec


and I am using $(Field) for dimension in Straigh table
and
=textbetween('|'&vCurrentSelections ,  only({1}$Field) & '|' ,  ':') for 1st expression
so as to get Jahr followed by Monat row-wise... But this is not working.


Though the 2nd expression
=textbetween(vCurrentSelections&'|' ,  only({1}$Field) & ':' ,  '|') is giving 2015 followed by Dec row-wise correctly.


Do you know what may be the problem?


Ultimately, the string 'Jahr:2015|Monat:Dec' should be displayed as

Jahr2015
MonatDec

If there's any alternative for the expression part, then do let me know.


Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try these:

Dimension =valueloop(0,Substringcount(vCurrentSelections,'|')

1st expression: subfield(subfield(vCurrentSelections,'|',rowno()),':',1)

2st expression: trim(subfield(subfield(vCurrentSelections,'|',rowno()),':',2))

You can hide the dimension on the presentation tab.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try these:

Dimension =valueloop(0,Substringcount(vCurrentSelections,'|')

1st expression: subfield(subfield(vCurrentSelections,'|',rowno()),':',1)

2st expression: trim(subfield(subfield(vCurrentSelections,'|',rowno()),':',2))

You can hide the dimension on the presentation tab.


talk is cheap, supply exceeds demand
ahbzshk07
Contributor III
Contributor III
Author

That was perfect... Thanks for your help...