Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Ayden
Contributor III
Contributor III

start date and end variable

how can i create start and End date variable to use in set analysis 

 

thanks ahead 

1 Solution

Accepted Solutions
rubenmarin

Hi, this can be done in many different ways based on the model and the needs, one option is to create a vMinDate and vMaxDate variables with this values:

vMinDate -> Min(DateField)

vMaxDate -> Max(DateField)

And used like: Sum({<DateField={">=$(vMinDate)<=$(vMaxDate)"}>} Sales)

View solution in original post

2 Replies
rubenmarin

Hi, this can be done in many different ways based on the model and the needs, one option is to create a vMinDate and vMaxDate variables with this values:

vMinDate -> Min(DateField)

vMaxDate -> Max(DateField)

And used like: Sum({<DateField={">=$(vMinDate)<=$(vMaxDate)"}>} Sales)

Ayden
Contributor III
Contributor III
Author

thanks a lot