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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.