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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.