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

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

Reply
RT6
Frequent Visitor

Related in Direct Query Mode

Hello! 

 

I am trying to do basic calculation Related in the Direct Query mode:

 

Sales Amount = RELATED('product'[Unit_Price]) * sales_streaming[Units]

 

RT6_0-1669842012789.png

 

 

and i get the following error:

RT6_1-1669832206976.png

 

Is there any work around to perform the calculation between two tables in the direct query mode?

 

Thanks!

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @RT6 

Did you use conditional formatting for your fields when your connection mode is Import ? 

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @RT6 

This error is thrown when some aggregation (in this case the count) is been translated to M for execution, so it's not really SQL yet . You can check your query in Power Query Editor to see whether some queries affect your operation . 

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

RT6
Frequent Visitor

What i also found in this paper, Related should be supported in DAX:

https://www.sqlbi.com/whitepapers/directquery-in-analysis-services-2016/RT6_1-1669883934078.png

 

RT6
Frequent Visitor

Hi Alisa!

 

Thanks fro your answer.

The issue is after any transformation in Power Query, like split columns, change data type etc i get the following error:

 

RT6_0-1669881762322.png

 

I need to maintain Direct Query connection. I can aggregate two tables for example, but i cannot change data type even in PB Desktop, so i cannot perform any calculations.

 

Any ideas? Thanks!

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.