Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I am trying to get distinct result but as below result:
Table :
Id | discription |
100 | abd |
100 | abd |
100 | |
200 | uyt |
200 | |
200 | |
300 | |
300 |
Result:
Id | discription |
100 | abd |
200 | uyt |
300 |
Need this result on table dimension.
Thanks to everyone.
Try this
load Id, SubField(discription,',') as discription;
load Id, concat(distinct if(len(trim(discription))>0,discription),',') as discription
group by Id
;
load * inline [
Id,discription
100,abd
100,abd1
100,
200,uyt
200
200
300
300
];
Thanks @pradosh_thakur for idea but I need this on expression not an script.
try this
=only(AGGR(SUM(DISTINCT Id),discription))
Thanks @Chanty4u , Its not working
dimension : ID
Measure : =concat(distinct discription,'')
output:
First dimension in table: Id
Second dimension in table: =Aggr(MaxString([discription]),Id)