@dev-101 opened this Issue on December 18th 2019

If we use single day for range report (e.g. page views), Compare tool will return the error because it expects to have range for comparison. Please add support to compare to another single date in this case (e.g. day before, day from last week, month, same day last year etc.)

index.php?module=CoreHome&action=index&idSite=1&period=day&date=today

API returned an error: The date ',' is not a correct date range. It should have the following format: 'lastN', 'previousN', 'YYYY-MM-DD,YYYY-MM-DD'. at Range.php:268

@tsteur commented on December 18th 2019 Member

@dev-101 do you know which report is showing you that error? Or whether it is shown on the dashboard? Is it for a specific widget in the dashboard? AFAIK this should be supported.

@dev-101 commented on December 18th 2019

Example URL:

/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today#?idSite=1&period=day&date=today&category=General_Actions&subcategory=General_Pages

Error is shown on the page (red rectangle).

You can also select any custom single date from the Day period option in the calendar.

I just noticed that there is an option to compare it to "Previous period", in which case previous day is automatically selected, but what if we need same day from the week before or month or custom date?

Powered by GitHub Issue Mirror