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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
KR300
Helper III
Helper III

Showing different color to a second line when combining the data using CONCATENATE & UNICHAR(10)

I have 5 columns  R0und, Planned Start Date, Planned End Date, Actual Start Date, Actual End Date

 

I am combining all the data using a calculated column

Planned / Actual Timelines 4 =
Var _Round = 'Release Train Details'[Round]
Var _D1 = IF(ISBLANK('Release Train Details'[Planned Start Date]),"TBA",FORMAT('Release Train Details'[Planned Start Date],"DD/MM"))
                    &"-"&IF(ISBLANK('Release Train Details'[Planned End Date]),"TBA",FORMAT('Release Train Details'[Planned End Date],"DD/MM"))
VAR _D2 = IF(ISBLANK('Release Train Details'[Actual Start Date]),"TBA",FORMAT('Release Train Details'[Actual Start Date],"DD/MM"))
                    &"-"&IF(ISBLANK('Release Train Details'[Actual End Date]),"TBA",FORMAT('Release Train Details'[Actual End Date],"DD/MM"))

RETURN
CONCATENATE(_Round,
    CONCATENATE(UNICHAR(10),
        CONCATENATE(_D1,
            CONCATENATE(UNICHAR(10),_D2) --- i want this data as a different color in table visual
        )
    )
)
 
ANS: example
Round1
25/02-25/02 ( Planned Timeline)
26/02-26/02 ( Actual Timeline )  -- & I want to show that line as a different color
Round2
25/02-25/02 ( Planned Timeline)
26/02-26/02 ( Actual Timeline )  -- & I want to show that line as a different color
 
like below

PBI 1.pngPBI 2.png


 

 Can we create a measure instead of the Calculated Column.?
 
 
 
 
1 ACCEPTED SOLUTION
Deku
Super User
Super User

You cannot colour a substring 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

7 REPLIES 7
v-achippa
Community Support
Community Support

Hi @KR300,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Deku and @Anonymous for the prompt response.

 

We wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @KR300,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @KR300,

 

We wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Anonymous
Not applicable

Hi @KR300 ,

Any update on this? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

No, it didn't help me.

Anonymous
Not applicable

HI @KR300,

You can try to unpivot these date fields to convert them to attribute and date values, then you can use this attribute field on legend to assign different colors based on their attribute group:

Unpivot columns - Power Query | Microsoft Learn

Regards,

Xiaoxin Sheng

Deku
Super User
Super User

You cannot colour a substring 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

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.