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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Amjad1002
Helper II
Helper II

IFS STATEMENT IN DIRECT QUERY

Hello folks,

I am trying to use ifs statement into my direct qurey table. I am trying to add condition or customer column but I am getting an error.  Are we not able to add column if there is a direct query ?

 

Thanks

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Amjad1002 , You can add simple columns using if. But if try to cross-row operation it might not work

 

explained here

Power BI Decoding Direct Query: https://www.youtube.com/playlist?list=PLPaNVDMhUXGbKatyDdOhGbTL3xW2Xy6pA

 

 

View solution in original post

3 REPLIES 3
Amjad1002
Helper II
Helper II

And even I try to switch into  table import mode. It is now working and showing me this eror.

 

Amjad1002_1-1680795937888.png

 

 

amitchandak
Super User
Super User

@Amjad1002 , You can add simple columns using if. But if try to cross-row operation it might not work

 

explained here

Power BI Decoding Direct Query: https://www.youtube.com/playlist?list=PLPaNVDMhUXGbKatyDdOhGbTL3xW2Xy6pA

 

 

Amjad1002_0-1680795683322.png

Hi Amit,

When I try to add custom column is showing me this error into direct query.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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