Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Newhaven
Contributor III
Contributor III

Error Nestet aggregation

Hi!

 

I have this script:

 

 

 

set HidePrefix = '#';


LanguageList:
Load * Inline [
Index, 	Deutsch, 		English,		Italiano				
1,		Haus, 			House, 			Casa
2, 		Holz,			Wood,			Legna						
];


Let vLanguage = 'MinString(#LANGUAGE)' ;

Language:
CrossTable (Language, Translation) load
Index,
Deutsch,
English,
Italiano
Resident LanguageList;

LaguageList:
Load Distinct Language as #LANGUAGE
Resident Language
where Language > 0;

drop Table Language;

 

 

 

 

In analyse I create a textfield with a code (and select only one language)

 

 

=Only({<Index = {1}>} $(vLanguage))

 

 

 

then I get the error: Nested aggregation not allowed

 

Where is my mistake?

Thx

 

 

Labels (3)
5 Replies
maheshkuttappa
Creator II
Creator II

What the result are you trying to get?  if need to nest aggregation you need to use the Aggr function or you can use the solution in the screenshot using the variable language _1 , its global variable 

mahesh3k_1-1697638981661.png

 

 

 

 

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I believe your expression should be:

=MinString({<Index = {1}>} #LANGUAGE)
Newhaven
Contributor III
Contributor III
Author

Sorry, forget zu explain 🙂

 

I have a table with my languages (#LANGUAGE)

 

If I now select  for example Italiano,  I would like to have the result casa in my text field (inline table Index 2, Language Italiano)

Newhaven
Contributor III
Contributor III
Author

Sorry, dosn't work. 

Please see previous post.

vincent_ardiet_
Specialist
Specialist

Why are you putting #LANGUAGE in a data island? Why dont' you keep it in the table [Language]? This would simplify.