SYMPTOM
An error message is shown when a report with a hierarchy on the template referred to as "R02" uses another report as a filter referred "R01".
STEPS TO REPRODUCE
1) Create a new hierarchy named “Unrelated”, add attributes Country and Quarter into it. Note that these two attributes have no existing relationship.
2) Update Schema.
3) Create report R01 with Country, Region, Distribution Center, and Cost;
4) Create report R02 with Unrelated hierarchy and Profit on a template, filter as Country=USA and R01;
5) Try to view SQL of R02, the following error is displayed:

Sample Code/Error
SQLEngine got an Exception from DFC: A hierarchy on the template must be related to one or more attributes in the report filter, or it cannot be replaced by one (or multiple) attributes.