Forum Discussion
Dynamic X-axis based on date selection in slicer
- 2 years ago
Hi Anonymous
This can be done by following steps:
1. Create a new table for dates and make sure this not have any relationship with you these two primary table
Date = DISTINCT(Sheet3[Date]), you can create this based on duedate of your table
2. create this measureMeasure =var current_date = MAX('Date'[Date])var pervious_date = DATE(YEAR(current_date),MONTH(current_date)-12,DAY(current_date))var result = CALCULATE(SUM(Sheet3[Value]),FILTER(Sheet3,Sheet3[Date]>= pervious_date && Sheet3[Date]<= current_date))return result
and create visualuse measure in y-axis and due date in x-axis
and use date in filter that you have created in step 1this hsould solve your probelm
Regards
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: https://www.youtube.com/@letssolveproblem
Hi Anonymous
This can be done by following steps:
1. Create a new table for dates and make sure this not have any relationship with you these two primary table
2. create this measure
and create visual
use measure in y-axis and due date in x-axis
and use date in filter that you have created in step 1
this hsould solve your probelm
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: https://www.youtube.com/@letssolveproblem
Hi
Thank you for the suggested solution, it works very well.