Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
FireAchan
Regular Visitor

Direct-Lake Error: file 'xmhierarchy.inl', line 93, function 'XMHierarchy::IsMaterialized'

Hi Community,

 

we are working with a dataset in Direct-Lake mode, but for the past couple of days, we've started to get the following error in our visuals: "[An unexpected error occurred (file 'xmhierarchy.inl', line 93, function 'XMHierarchy::IsMaterialized').]". After conducting some tests, it seems that the error is thrown by all measures that contain filter conditions using variables or table expressions. Some examples of such measures are:

 

 

 

 

Measure1 = CALCULATE(COUNT(table1), table1[col1] IN UNION(VALUES(table2[col1]), VALUES(table3[col5]))
Measure2 = VAR var1 = 'text' RETURN CALCULATE(COUNT(table1), table1[col2] = var1)

 

 

 

 

However, it seems that measures with filter conditions on constant values work correctly. Examples of this include:

 

 

 

Measure2 = CALCULATE(COUNT(table1), table1[col2] = 'text')

 

 

 

 

Another observation is that when I connect to the dataset with the issue using Power BI Desktop in live connection and replicate the measures with the same code as the ones causing the problem, they work correctly in this case. The dataset only throws the exception when the measure is embedded in it and not when it is injected from outside through a direct DAX query definition.

 

Can someone help us please?

2 REPLIES 2
S24_SimonNoer
Regular Visitor

@FireAchan 
ive solved it on my end.

i added the relationships in the lakehouse and it solved the issue

S24_SimonNoer
Regular Visitor

I have the same error. 
I cant get the measures to work when make the in the Desktop App
but if i make the same measure in the semantic model via the editor in the service it fails

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors