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
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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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