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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
dnsia
Helper II
Helper II

How to get a column value that contains a static text value& a dynamic text value from a ref column

ORIGINDESTINATIONETDETAATDATADELIVERY DATE REMARKS
ManilaCagayan15-Jan21-Jan15/01/2023 5:3221/01/2023 1:0028-JanPulled out at Cagayan Port
ManilaZamboanga20-Jan23-Jan21/01/2023 18:3423/01/2023 8:1228-JanPulled out at Zamboanga Port
ManilaZamboanga20-Jan23-Jan21/01/2023 18:3423/01/2023 8:1210-FebPulled out at Zamboanga Port
ManilaDavao20-Jan26-Jan21/01/2023 18:3428/01/2023 3:1201-FebPulled out at Davao Port
ManilaDavao20-Jan26-Jan21/01/2023 18:3428/01/2023 3:1227-JanPulled out at Davao Port
ManilaDavao20-Jan26-Jan21/01/2023 18:3428/01/2023 3:1228-JanPulled out at Davao Port
ManilaGensan20-Jan28-Jan21/01/2023 18:3428/01/2023 3:1230-JanPulled out at Gensan Port
ManilaGensan20-Jan28-Jan21/01/2023 18:3428/01/2023 3:1230-JanPulled out at Gensan Port
ManilaCotabato29-Jan04-Feb29/01/2023 9:0605/02/2023 6:2808-FebPulled out at Cotabato Port
ManilaCotabato29-Jan04-Feb29/01/2023 9:0605/02/2023 6:28 At Cotabato Port
ManilaCotabato29-Jan04-Feb29/01/2023 9:0605/02/2023 6:28 At Cotabato Port
ManilaCotabato29-Jan04-Feb29/01/2023 9:0605/02/2023 6:2806-FebPulled out at Cotabato Port
ManilaCotabato29-Jan04-Feb29/01/2023 9:0605/02/2023 6:28 At Cotabato Port
ManilaCotabato29-Jan04-Feb29/01/2023 9:0605/02/2023 6:2806-FebPulled out at Cotabato Port
ManilaDavao05-Feb10-Feb05/02/2023 3:4809/02/2023 6:18 At Davao Port
ManilaDavao05-Feb10-Feb05/02/2023 3:4809/02/2023 6:1811-FebPulled out at Davao Port
ManilaIloilo10-Feb14-Feb10/02/2023 0:00  Intransit Iloilo
ManilaBacolod10-Feb15-Feb10/02/2023 0:00  Intransit Bacolod
ManilaBacolod10-Feb15-Feb   At Manila Port

 

I'm trying to create the 'Remarks' column.

As what can be seen, Remarks column value is dependent on the value of columns ATD, ATA and Delivery Date.

 

If the Delivery date is not null,  [true]Pulled out at "Destination column" Port

If Delivery date is null and ATD, ATA is not null, At "Destination column"

If ATA, Delivery date  is  null and ATD is not null, Intransit "Destination column" 

If ATD, ATA and Delivery date  is null, At "Origin" Port

1 ACCEPTED SOLUTION
SamInogic
Super User
Super User

Hi @dnsia,

You can tryto create new column and use below DAX Expression:


Column = if(not

ISBLANK('Sample Data'[Delivery Date ]),"Pull out at " & 'Sample Data'[Destination] &

" Port",IF('Sample Data'[ATD]="" && 'Sample Data'[ATA]="" &&

ISBLANK('Sample Data'[Delivery Date ]),"At " & 'Sample Data'[Origin] &

" Port",IF('Sample Data'[ATA]="" &&

ISBLANK('Sample Data'[Delivery Date ]) && 'Sample Data'[ATD]<>"","Intransit " & 'Sample Data'[Destination],IF(ISBLANK('Sample

 Data'[Delivery Date ]) && ('Sample Data'[ATD]<>"" || 'Sample Data'[ATA]<>""),"At " & 'Sample Data'[Destination]))))

SamInogic_0-1677063527008.png


This will give result as shown in below screenshot:

SamInogic_1-1677063548904.png


If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

1 REPLY 1
SamInogic
Super User
Super User

Hi @dnsia,

You can tryto create new column and use below DAX Expression:


Column = if(not

ISBLANK('Sample Data'[Delivery Date ]),"Pull out at " & 'Sample Data'[Destination] &

" Port",IF('Sample Data'[ATD]="" && 'Sample Data'[ATA]="" &&

ISBLANK('Sample Data'[Delivery Date ]),"At " & 'Sample Data'[Origin] &

" Port",IF('Sample Data'[ATA]="" &&

ISBLANK('Sample Data'[Delivery Date ]) && 'Sample Data'[ATD]<>"","Intransit " & 'Sample Data'[Destination],IF(ISBLANK('Sample

 Data'[Delivery Date ]) && ('Sample Data'[ATD]<>"" || 'Sample Data'[ATA]<>""),"At " & 'Sample Data'[Destination]))))

SamInogic_0-1677063527008.png


This will give result as shown in below screenshot:

SamInogic_1-1677063548904.png


If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.