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: 
gauravgg
Partner - Creator
Partner - Creator

Selection should not effect ?

Hi

I have the following two expression

count(distinct{<Part={"=count(Part)=Max(TOTAL Aggr(Count(Part),Part))"}>}Part)

count(Aggr(if(Count(DISTINCT [FG Desc]&PLANT) =1,Part),Part))

I dont want the effect of selection for a perticular field on that expressions

can anyone help me

thanks in Advance

24 Replies
Anil_Babu_Samineni

Try this?

count(distinct{1<Part={"=count(Part)=Max(TOTAL Aggr(Count(Part),Part))"}>}Part)

count(Aggr(if(Count({1} DISTINCT [FG Desc]&PLANT) =1,Part),Part))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
stabben23
Partner - Master
Partner - Master

Hi,

then you need to add these Fields in you set analysis, try like this in bold.

count(distinct{<Field1,Field2,Field3, Part={"=count(Part)=Max(TOTAL Aggr(Count(Part),Part))"}>}Part)

count({<Field1,Field2,Field3>}Aggr(if(Count(DISTINCT [FG Desc]&PLANT) =1,Part),Part))

its_anandrjs

Try one of this

count({1} distinct{<Part={"=count(Part)=Max(TOTAL Aggr(Count(Part),Part))"}>}Part)

count({1} Aggr(if(Count(DISTINCT [FG Desc]&PLANT) =1,Part),Part))

gauravgg
Partner - Creator
Partner - Creator
Author

No ,it is not working

thanks for reply

gauravgg
Partner - Creator
Partner - Creator
Author

No ,it is not working

thanks for reply

gauravgg
Partner - Creator
Partner - Creator
Author

No ,it is not working

thanks for reply

shraddha_g
Partner - Master III
Partner - Master III

Try

count({1} distinct{<Part={"=count({1}Part)=Max({1} TOTAL Aggr(Count({1}Part),Part))"}>}Part)

count({1} Aggr(if(Count({1} DISTINCT [FG Desc]&PLANT) =1,Part),Part))

Anil_Babu_Samineni

How about this?

Only({1} count(distinct{<Part={"=count(Part)=Max(TOTAL Aggr(Count(Part),Part))"}>}Part))

Only({1} count(Aggr(if(Count(DISTINCT [FG Desc]&PLANT) =1,Part),Part)))


If not, i would respect to ask share image where you done

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
gauravgg
Partner - Creator
Partner - Creator
Author

No ,it is not working