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: 
psankepalli
Partner - Creator III
Partner - Creator III

Current Slections Straight table showing Duplicate values

Hello Experts,

I am using straight table instead of current selections option. My intention is I want to show list of current selections into straight table. somehow few of my dimensions showing twice into the straight table and few other once. I am really not sure what is causing problem.

Here is my Expression

*************************************************

= if(index(vCurrentSelections,only({1}$Field) & ':')>0,

  textbetween(concat(TOTAL DISTINCT (OldName & ':'&  NewName),'|',OldName ) & '|',only({1}$Field) & ':','|')

  )

*************************************************

Here

vCurrentSelections is list of current slections from that sheet.

Old name and new name coming from INLINE table.

$Field= Dimension

Let me know if anyone need more info , so that I can provide.

Thanks

KR

3 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Not applicable

Seems your Only conditions are causing issue. but as Oleg said a sample Doc will always help to understand situation better.

psankepalli
Partner - Creator III
Partner - Creator III
Author

I found the solution, its problem with my logic. next time I will share the sample document. thank you very much for your response.

Expression:

1st Expression: NewName2

= if(index(vCurrentSelectionsI,'@' & only({1}$Field) & ':')>0,
textbetween(concat(TOTAL DISTINCT (OldName & ':'&  NewName),'|',OldName ) & '|',only({1}$Field) & ':','|')
)


This logic has solved my problem.