cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shivam
Helper III
Helper III

Can anybody tell me the DAX to add only particular values of a field in new calculated column?

PS : I am working on direct query mode so don't have access to the Power Query

 

I want only 3 particular values (by name) in new calculated column. example- "apac", "emea", "usca"

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@shivam , There is a limitation  not type of operation you can to in direct query for column

 

You can try three new columns, simple if, may work

 

example

if [Region] = "apac" then [column]

View solution in original post

2 REPLIES 2
amrans
Frequent Visitor

If you are using direct query with SQL Server, check if you can call a custom query to add required column logic in query.

amitchandak
Super User
Super User

@shivam , There is a limitation  not type of operation you can to in direct query for column

 

You can try three new columns, simple if, may work

 

example

if [Region] = "apac" then [column]

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors