Forum Discussion
Dynamic X-Axis Chart based on Parameter
You can't use DATESBETEEN as a value for a measure (or a calculated column) since measures return only SCALARS, not tables. Only in one case are you authorized to assign a table to a measure value - when the table holds only one column and one row. In this case DAX turns the table into a value automatically. Also, I'd kindly suggest that you learn about time-intelligence in Power BI because I can see you're doing it incorrectly, which means sooner or later you'll have mistakes/bugs in your figures.
You can start here: https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/
and then head over to: https://docs.microsoft.com/en-us/power-bi/guidance/star-schema
Please learn the philosophy of Power BI and how DAX works to avoid common mistakes.