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