Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Experts,
I am using GetCurrentSelections() function in text object to represent my current selections of whole dashboard, but now i want to restrict few fields from this, Could you please help me to design the same?
Yeah, I have 20 plus filters and have restrict only 2 fields, i am using Replace within text objects and modifying this but additional commas appearing , need to restrict that.
='Current Selections - '&replace(replace(replace(replace(replace(replace(Replace(replace(replace
(replace(replace(replace(replace(replace(replace(Replace(Replace
(replace(Replace(GetCurrentSelections(' | '),
[Comparison Elements],''),'Comparison Elements',''),'FT2',''),FT2,''),'("S&OP-1"|"FBP")',''),'("FBP"|"CY-1")',''),'R&OP',''),'CY-1',''),'CY-2',''),'CYP1','')
,'SNOP','')
,'FBP',''),'MUD',''),'JUD',''),'SUD',''),'NUD',''),'S&OP-1',''),'ALL','')
,[Reporting Month],date([Reporting Month],'MMM-YY'))
This is the expression and 5 values are selected in Comparison Elements field.
And output for the same is
Current Selections - Reporting Month: Apr-19 | Region: LATAM | : , , , , | : |
I want to avoid that | symbol and commas as well.
Thanks for your response.
hi,
You can even try to edit from this post Document-Chaining-in-Qlik-Sense, for your case
So you want only two fields selections out of twenty fields or 18 out of 20? i.e - exclude 2 or include 2?
Try like below:
=Replace(
Replace(
Replace(
'|'&GetCurrentSelections('|',':',',')&'|',
TextBetween('|'&GetCurrentSelections('|',':',',')&'|' , '|Field1','|'),
''
), '|Actor', '')
,
TextBetween('|'&GetCurrentSelections('|',':',',')&'|' , '|Field2','|'),
''
)
Replace Field1, Field2 with your fields that you would want to exclude from the result
Hi tresesco,
Thanks for your continous support.
I am trying this option but no luck.
Could you please forward me .qvw where you implemented this.
Regards,
Bhushan