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: 
Anonymous
Not applicable

Issue with set analysis in calculated dimension

Hello everybody !

i am facing an issue with a calculated dimension.

I explain: I have a cross table with Article code, article description and Plant as dimension; i want to add NumContract as calculated dimension.

Num contract is displayed when  startdate<date analysed <Enddate

startdate and enddate are variables that i have created and they are defined as follow :

startdate : date(start contract date ,'DD/MM/YYYY') start contract date : 41640 and enddate : date(end contract date,'DD/MM/YYYY')

My expression is like this but it doesn't work and i need help :

aggr(only({<[Date analysed]={">$(date(startdate))<$(date(enddate))"}>}[Num contrat]),[Num contrat],[Article code], [Article description],Plant)

Thanks for your help !

20 Replies
Anonymous
Not applicable
Author

I resolved my issue by deleting the calculated dimension and using only set analysis in my expression :

=sum({<[start date]={"<$(=$(vNumdateanalyse))"},[end date]={">$(=$(vNumdateanalyse))"}>}[Quantity])

vNumdateanalyse = num([Date analysed])