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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.