
Creator II
2019-04-05
05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 Months trend on user date selection
hello,
I need to know how to calculate 6 months trend of previous months based on the selected month
1,079 Views
1 Solution
Accepted Solutions

Contributor III
2019-04-05
06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can Calculate Start and end date in Variable and use those variable in Set analysis, But make sure Field Value format and Variable Value format are same -
Sum({<Reporting={'>= $(vStart_Date) <= $(vEnd_Date)'}>} Values)
vStart_Date = addmonths(Max(Date),-6)
vEnd_Date = Max(Date)
Hope this Helps.
You can Calculate Start and end date in Variable and use those variable in Set analysis, But make sure Field Value format and Variable Value format are same -
Sum({<Reporting={'>= $(vStart_Date) <= $(vEnd_Date)'}>} Values)
vStart_Date = addmonths(Max(Date),-6)
vEnd_Date = Max(Date)
Hope this Helps.
1,062 Views
2 Replies

Partner - Contributor III
2019-04-05
06:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can use addmonth (maxdate,-6)
1,069 Views

Contributor III
2019-04-05
06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can Calculate Start and end date in Variable and use those variable in Set analysis, But make sure Field Value format and Variable Value format are same -
Sum({<Reporting={'>= $(vStart_Date) <= $(vEnd_Date)'}>} Values)
vStart_Date = addmonths(Max(Date),-6)
vEnd_Date = Max(Date)
Hope this Helps.
You can Calculate Start and end date in Variable and use those variable in Set analysis, But make sure Field Value format and Variable Value format are same -
Sum({<Reporting={'>= $(vStart_Date) <= $(vEnd_Date)'}>} Values)
vStart_Date = addmonths(Max(Date),-6)
vEnd_Date = Max(Date)
Hope this Helps.
1,063 Views
