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: 
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

It would be easier to troubleshoot if you could post a sample document.

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.