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
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
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.