Forum Discussion
Rolling timelines past AND future
- 3 years ago
Hi, Anonymous
According to your description, you want to show TODAY() on the bar chart as the basis for judgment, showing the values of the past 6 months and the next 6 months. Right?
Here are the steps you can follow:
(1)This is my test data:
(2)We can click “New measure” to create a measure used to override the Y axis: “value”
value = CALCULATE( SUM('Table'[test]) , 'Table'[Date] < EOMONTH( TODAY() ,6)+1 && 'Table'[Date] >EOMONTH(TODAY(),-7)+1)(3)We can put the [Date] in X axis of the bar chart (Keep the year and month) and we put the [value] measure in the Y axis:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Anonymous3 years ago
Ok,
looks like this would work. However it looks quite complicated as I'd need to create new measures for each and every field I want to show on this 6+6 month time frame.
This give me an idea though. I could probably add a calculated true/false column in my date table telling if the date is in the desired range. Then I could use this new field as a filter on all the visuals.
Hi, Anonymous
According to your description, you want to show TODAY() on the bar chart as the basis for judgment, showing the values of the past 6 months and the next 6 months. Right?
Here are the steps you can follow:
(1)This is my test data:
(2)We can click “New measure” to create a measure used to override the Y axis: “value”
value = CALCULATE( SUM('Table'[test]) , 'Table'[Date] < EOMONTH( TODAY() ,6)+1 && 'Table'[Date] >EOMONTH(TODAY(),-7)+1)
(3)We can put the [Date] in X axis of the bar chart (Keep the year and month) and we put the [value] measure in the Y axis:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Anonymous3 years agoNot applicable
Ok,
looks like this would work. However it looks quite complicated as I'd need to create new measures for each and every field I want to show on this 6+6 month time frame.
This give me an idea though. I could probably add a calculated true/false column in my date table telling if the date is in the desired range. Then I could use this new field as a filter on all the visuals.