Forum Discussion
Anonymous
2 years agoNot applicable
AttributeHierarchy Error
Hi All, I have a dataset which was working yesterday, but I've refresehed it this morning and 5 calculated columns are now returning errors. 4 of them give the error "This expression refers to a ...
- 2 years ago
Anonymous
The errors you're encountering could be due to several reasons. Here are some troubleshooting steps you can take to identify and resolve the issues:
Check Data Source:
- Make sure that there are no issues with the data source itself. Refresh the data again to ensure that there are no connectivity issues or changes in the source data that could be causing the problem.
Review Calculated Columns:
- Review the DAX expressions for the calculated columns that are returning errors. Check for any syntax errors, incorrect references, or unsupported operations.
- Verify that the calculated columns are referencing ColumnName correctly and that there are no typos or inconsistencies in the column references.
Check Data Model:
- Check the data model to ensure that the relationships between tables are correctly defined and that there are no circular references or ambiguous relationships.
- Verify that the data type of ColumnName is consistent across all related tables and that it matches the expected data type in the calculated columns.
Refresh Metadata:
- Sometimes, refreshing the metadata of the data model can resolve issues with calculated columns. Go to the "Modeling" tab in Power BI Desktop and click on "Refresh" to update the metadata.
Clear Cache:
- Clear the cache in Power BI Desktop by going to "File" > "Options and settings" > "Options" > "Data Load" and clicking on "Clear Cache". This can sometimes resolve caching issues that may be causing errors.
johnbasha33
2 years agoSuper User
Anonymous
The errors you're encountering could be due to several reasons. Here are some troubleshooting steps you can take to identify and resolve the issues:
Check Data Source:
- Make sure that there are no issues with the data source itself. Refresh the data again to ensure that there are no connectivity issues or changes in the source data that could be causing the problem.
Review Calculated Columns:
- Review the DAX expressions for the calculated columns that are returning errors. Check for any syntax errors, incorrect references, or unsupported operations.
- Verify that the calculated columns are referencing ColumnName correctly and that there are no typos or inconsistencies in the column references.
Check Data Model:
- Check the data model to ensure that the relationships between tables are correctly defined and that there are no circular references or ambiguous relationships.
- Verify that the data type of ColumnName is consistent across all related tables and that it matches the expected data type in the calculated columns.
Refresh Metadata:
- Sometimes, refreshing the metadata of the data model can resolve issues with calculated columns. Go to the "Modeling" tab in Power BI Desktop and click on "Refresh" to update the metadata.
Clear Cache:
- Clear the cache in Power BI Desktop by going to "File" > "Options and settings" > "Options" > "Data Load" and clicking on "Clear Cache". This can sometimes resolve caching issues that may be causing errors.
- Anonymous2 years agoNot applicable
Thanks johnbasha33! Clearing the Cache worked for me!
- johnbasha332 years agoSuper User
Glad to know that was helpful. 🙂