In rare cases, Matomo (Piwik) will show “no data” for a subset of data, for example for one day, one week or one month, while other periods will work fine and report all data as expected.

How to solve this problem?

Congratulations! you should have now restored the missing data and likely prevented this issue from occurring in the future.