Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

daily monitoring

Hello lovely people,

I need to create a graph that contains the daily evolution of an indicato. Here's what I did :

Capture.PNG

The problem is that on my graph I wanna display the 5 maximum dates : 15,14,13 sep ect..

Bellow the graph properties :

Capture.PNG

Any idea please?

Thanks

8 Replies
sunny_talwar

May be use set analysis to display 5 max date instead of dimension limits

master_student
Creator III
Creator III
Author

An example please.

Anonymous
Not applicable

Hi Wiem,

And don't show others:

Regards!

t_moutault
Contributor III
Contributor III

hi,

like sunny say use set analysis, something like this :

variables :

vDateDeb = Date(Max(DATE)-5,'DD/MM/YYYY')

vDateFin = Date(Max(DATE),'DD/MM/YYYY')

nb : use the format of DATE (here date is formated 'DD/MM/YYYY')

Set Analysis:

DATE={'>=$(vDateDeb ) <=$(vDateFin )'}

Anonymous
Not applicable

Hi Sunny, what happens if the dates are not consecutive?,

Max Date = '15/09/2016'

Last 5 dates:

01/09/2016, 03/09/2016, 05/09/2016, 08/09/2016, 15/09/2016

You will show only 2 dates, not 5. This is a case for limit dims.

Regards!

master_student
Creator III
Creator III
Author

Hello Manuel, this is what I did and the result doesn't work as you can see bellow.

Thanks

sunny_talwar

May be something like this:

Sum({<Date = {"$(='>=' & Date(Max({<Date = {'<=$(=Date(Max(Date)))'}>}Date, 5)) & '<=' & Date(Max(Date)))"}>}Measure)

Make sure that date is created as this in the script:

LOAD Date(Date) as Date,

           ...

FROM ....

Anonymous
Not applicable

Try this then: =Sum({<Date={'>=$(=Date(FirstSortedValue(Date,-Date,5)))'}>}Value)

Regards!