I found this article which suggested that I can filter custom dimension results by actionType. However, the results of actionType==pageviews and actionType==events are exactly the same. I try actionType==downloads and the result is empty.
This is how the page views and events looks like in the visits log. What can I do to distinguish from page views and events of a custom dimension