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
TIMTIM
New Member

Created columns with DAX on columns imported with Direct Query not working

Hello Folks 

I'm working on a project to ameliorate my skills using power BI

i created 3 tables on Oracle DB (data_2018, market segment and meals) i imported the data on power BI with direct query using this statement : 

select A.*,b.cost,c.discount,(STAYS_IN_WEEKEND_NIGHTS + STAYS_IN_WEEK_NIGHTS) as nbr from DATA_2018 A left join meal B on A.meal = B.meal left join client_segment C on A.market_segment = C.market_segment 

 

Then i created this column in DAX :  

Coln = Query1[NBR] * Query1[ADR] 
and this one : 
total = (Query1[CHILDREN] + Query1[ADULTS])* Query1[COST] + Query1[Coln] 
 
however, when i try to display the total on a card or use any other visual 
i get this message : 
 
Error Message:
ORA-00904: "c36": invalid identifier. The exception was raised by the IDbCommand interface. 
 
My Question is : how to solve this issue and if there and particular tips with DAX when we work using Direct Query
 
Thanks in advance

 

1 REPLY 1
lbendlin
Super User
Super User

 i imported the data on power BI with direct query

No.  It's either Import Mode or Direct Query. But not both.

 

The error happens on the Oracle side. Check your views/queries there.

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.