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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jzhao
Frequent Visitor

Direct Query Relate to Other Table

I imported a data model using DirectQuery and I want to convert revenue using the plan rate with a function.

I'm using the following formula:

Revenue at USD Plan = DIVIDE(Fact_Backlog[Revenue in local currency], RELATED('Plan Rate Lookup'[FY 24 Plan Rate]))

However, I am encountering an error: The column 'Plan Rate Lookup[FY 24 Plan Rate]' either doesn't exist or doesn't have a relationship to any table available in the current context.

 

The relationship appears to be set up correctly. How can I resolve this issue? I understand that I'm working with DirectQuery, but the table relationships seem fine.

 

jzhao_1-1729155829058.png

 

Maybe the reason is the fact table is a direct query and a lookup table is import model. Is there a way create relationship between direct query and import model?

4 REPLIES 4

Huh? Row context is iterating the table on the many-side of a relationship(fact table) . and I use related to retrieve unique value from lookup table. The data model and usage is identical to the article.

jzhao_0-1729219155270.png

 

 Using RELATED and RELATEDTABLE in DAX - SQLBI

Anonymous
Not applicable

Hi @jzhao ,

Sorry my bad, I had it backwards, I'll delete my reply. But maybe you still need to provide your sample data to know what the problem is. Apologies!
Also I see that your table seems to be still connected to other tables, please check if there are other propagation paths between your table Fact_Backlog and table Plan Rate Lookup (i.e. there is a closed loop relationship between these two tables), if so, that could potentially lead to an unclear passing relationship.

vjunyantmsft_0-1729222050529.png

 


Best Regards
Dino Tao

lbendlin
Super User
Super User

I imported a data model using DirectQuery

Huh?

 

RELATED is not normally something you use in a measure.  Is your formula addressing columns or measures?

This is calculated column

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.