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