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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jefflynn
Frequent Visitor

Concatenate not working

I want to concatenate Employee Number (text) with SelectedEndYearMeasure.

jefflynn_1-1717520291701.png

Selected End = SELECTEDVALUE ('Cal End'[End Date]) - measure

SelectedEndYearMeasure = Year([Selected End])
My column to concatenate:
EmployeeSelectedEndYear = CONCATENATE('Raw Data'[Employee Number], [SelectedEndYearMeasure]
This only returns the Employee Number, there is no error.
 
Thanks in advance for any help!
4 REPLIES 4
Anonymous
Not applicable

Hi,@jefflynn .
If your problem has been solved, and if so, mark the suggestion you provided as a solution.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi,@jefflynn Hello,@Greg_Deckler ,

thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below
I am glad to help you.

According to your description, you have a problem with splicing fields of type Text [Employee Number] and measure [SelectedEndYearMeasure] using function Concatenate:Concatenate not working

Here is the test I performed:

vjtianmsft_0-1717574633661.pngvjtianmsft_1-1717574641675.png

In my test environment, Concatenate works fine.

One thing to note: [Selected End] and [SelectedEndYearMeasure] are both measures

vjtianmsft_2-1717574663850.png

I tried the suggestion provided by@Greg_Deckler and it works fine (create measure)

vjtianmsft_3-1717574690775.png

Even when I create it using calculate column, the created calculate column works fine!

vjtianmsft_4-1717574713968.png

However, that normal operation at this point assumes that only one date value exists in the calendar table

vjtianmsft_5-1717574727619.png

The problem occurs when the data in the calendar table is modified to multiple values:

vjtianmsft_6-1717574741963.pngvjtianmsft_7-1717574749420.png

You will find that the CONCATENATE function doesn't work, (actually because the selectedValue function gets more than one value).

Although this is not consistent with the final result you show (in your result Select End is shown normally), in my test environment [Selected End] does not show the data

Because I think it may be due to the difference in computing environment.

Can you please confirm that your [Selected End] only returns a unique date value for each record, not multiple values?

Can you provide more non-sensitive information such as the relationship between 'Raw Data' and [Cal End][End Date]?

If possible, could you provide a pbix file that does not contain sensitive information, this would be helpful in solving your problem.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@jefflynn If that is a calculated column, probably won't work as measures don't generally work in calculated columns. You could use a measure form like: 

EmployeeSelectedEndYearMeasure = CONCATENATE(MAX('Raw Data'[Employee Number])[SelectedEndYearMeasure]



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Still not working:

jefflynn_0-1717521735824.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors