Forum Discussion
SanderTK
2 years agoAdvocate II
Filtering x-axis on offset start and end date
I am running into a rather unique problem that is throwing me for a bit of a loop: I have two tables, one table with events that have a colomn for the start date and end date of that event and an...
- Anonymous2 years ago
Hi SanderTK ,
You can create two date offsets on the event table. Then use this date range as a filter based on it.
Start Date Offset = Events[Start Date] - 10 End Date Offset = Events[End Date] + 10Create a MEASURE for calculating ticket sales for the date range.
Total Ticket Sales = CALCULATE( SUM('Ticket Sales'[Sold]), FILTER( ALL('Calendar'), 'Calendar'[Date] >= MIN(Events[Start Date Offset]) && 'Calendar'[Date] <= MAX(Events[End Date Offset]) ) )Also based on your description, the double date range is not friendly for line charts, I think table is a better option. If the problem persists, please provide detailed test data and screenshots of the desired results.
Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
2 years agoSuper User
Hi,
I'd lile to try. Share data in a format that can be pasted in an MS Excel file. For that data shared, show the expected result in a simple Table format.