cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kandidel
Frequent Visitor

DAX to get value from other column if "text before delimiter column" is blank

Hi there,

 I have created a column in my model using "Insert Text before delimiter":

Table.AddColumn(#"Changed Type", "Text Before Delimiter", each Text.BeforeDelimiter(Text.From([Project ID], "en-GB"), "."), type text)

 

Partly the result is blank. In this case, I would like to have the value from column [opportunity code] in this table.

I have no idea how to get this working. Please help. Thanks in advance.

1 ACCEPTED SOLUTION

Hi Ibendlin, thanks for offering support. I have managed to go ahead with my issue by using a help colum where I check, if field in column "Masterproject" is empty and set respective neded value with help of a Switch-Function.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. I cannot help you without usable sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Hi Ibendlin, thanks for offering support. I have managed to go ahead with my issue by using a help colum where I check, if field in column "Masterproject" is empty and set respective neded value with help of a Switch-Function.

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors