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
abc_777
Post Prodigy
Post Prodigy

hi

hi

 

very simple query

 

how i can concatante a word with a column

 

i go to customer column then

 

"quarter"&""&[Quarter Of Year]

 

here quarter is my given word and Quarter of year is column name i want all values in quarter of year for quarter word in front

 

thanks

1 ACCEPTED SOLUTION

Concat=COMBINEVALUES(" ","quarter",[Quarter Of Year])

View solution in original post

8 REPLIES 8
Greg_Deckler
Super User
Super User

@abc_777 That is the correct syntax for a DAX calculated column. "quarter" & [Quarter of Year]. You could use the CONCATENATE function as well but don't see why that is necessary. 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

but

"quarter"&""&[Quarter Of Year] gives me error in column

 

i have only 1,2,3,4 values in [Quarter Of Year] column. so i dont know why getting error

Can you specify what error you are getting?

I see you haven't specified any delimeter in your DAX.
USe the same DAX and specify a space(" ") as an delimeter. 
"quarter"&" "&[Quarter Of Year] 

Thanks,
Sanket

hi

 

here is my column

abc_777_0-1647249767556.png

 

after creating customer column

abc_777_2-1647249845837.png

 

i am getting this error

 

abc_777_1-1647249786943.png

 

That's right.
It's because you can't apply operator '&' to number.

In that case, you can create a calculated column.

Thanks,
Sanket

in that case creating calculated column what would be the formula to concatanate word with a column

Concat=COMBINEVALUES(" ","quarter",[Quarter Of Year])

SanketBhagwat
Solution Sage
Solution Sage

Hi @abc_777 .

You can create a new column using DAX like;
Concat=COMBINEVALUES(" ","quarter",[Quarter Of Year])

Let me know if that works.

If this post helps, then mark it as "Accept as Solution" and give it a thumbs up.

Regards,
Sanket

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.