Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 !
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])
May be this
aggr(only({<[Date analysed]={">$(=date(startdate))<$(=date(enddate))"}>}[Num contrat]),[Num contrat],[Article code], [Article description],Plant)
I tried with equal but nothing happens
Can you please share sample data.
How is your Date Analyzed format looks like?
Would you be able to share a sample to take a look at this?
I am not sure...even if I scramb data, i don't have permission to do that...
Hello, sorry but i am not sur to be able to share sample data...that is the reason why i put all information in my subject description...
May be mock up data in an Excel file and provide the expected output from that sample?
Date analyzed has this format : DD/MM/YYYY