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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Aditya_Chitale
Specialist
Specialist

Show Single distinct entry from similar group of values

Hi All,

I have a requirement where if a table column has multiple similar values,  I have to show only one instance of that value (Doesn't matter against which record) and show other similar values as blank (white space).

Name Age
A 30
B 30
C 40
D 40

 

In above table, I have 2 same ages per name. I have to identify such similar age count and if it is greater than 1, show only single entry against any name of that age group. (here, 30 can be shown against either either A or B and 40 against either C or D). Other remaining entries have to be replaced with white space.

Any help would be highly appreciated.

 

Regards,

Aditya

Labels (6)
5 Replies
anat
Master
Master

test:
load * Inline [
Name,Age
A,30
B,30
C,40
D,40

];

NoConcatenate

test1:

LOAD Name,if(Age=Previous(Age),Null(),Age) as Age1,Age Resident test;
DROP Table test;

Aditya_Chitale
Specialist
Specialist
Author

@anat thanks for the reply. But is there any way to do it in the frontend ? I don't want to alter anything in the backend.

 

Regards,

Aditya

BrunPierre
Partner - Master II
Partner - Master II

Like this perhaps?

=Aggr(Only({<Name={"=Count(Age)=1"} >} Age),Age)

Aditya_Chitale
Specialist
Specialist
Author

@BrunPierre  Not working. Showing null values

Aditya_Chitale_0-1680787516289.png

 

BrunPierre
Partner - Master II
Partner - Master II

Do you have two brokers with the different target allocation? Maybe you can share an example.