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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bryanshaw46
Resolver I
Resolver I

Column cannot be found or may not be used in this expression

I am having trouble with a measurement formula.

 

Avg Days to Resolve = DIVIDE( Sum(FactIncident[DaysToResolve]), Sum(FactIncident[IncOpen]))

 

The error is: Column 'IncOpen' in table 'FactIncident' cannot be found or may not be used in this expression.

 

The column DOES exist as a calculated column using:

IncOpen = CALCULATE( Sum ( FactIncident[NewQty] ), USERELATIONSHIP( FactIncident[FK_NewDate], TimeHour[YYYYMMDD_PK] ))

 

FactIncident[NewQty] is always 1.  I have to specify the relationship because it is inactive. 

 

So I went hunting on the Modeling tab:  IncOpen does NOT have a data type.   Maybe that is my problem???   How can I fix it?

3 REPLIES 3
Anonymous
Not applicable

I figure this must be closed now.

 

But I had this issue, that one of the new columns I created was referencing this column name. BUT I had changed that column name in the background.

v-micsh-msft
Microsoft Employee
Microsoft Employee

Hi bryanshaw46,

I suspect this should be caused by the userrelationship function.

"

If CALCULATE expressions are nested, and more than one CALCULATE expression contains a USERELATIONSHIP function, then the innermost USERELATIONSHIP is the one that prevails in case of a conflict or ambiguity.

"

As [Avg Days to Resolve] is a measure, and the FactIncident[IncOpen] is calculated column, USERELATIONSHIP function is somehow "nested".

UserRelationship reference.

Would you please share some data sample here for us to do a further investigation?

Or consider share the relationship View of your data, make sure all the items that involved in this issue are in the screenshot.

By the way, have you tried to change the IncOpen data type to whole number? Select it under the Fields pane, under modeling tab, it would be available to change the data type.

Regards

bryanshaw46
Resolver I
Resolver I

I appreciate any help someone can lend me.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.