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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to return concatenation of a scalar value and string in a measure ?

Measure = 
VAR _year = SELECTEDVALUE(Table[Year])
RETURN "Dec" & _year

I am getting error in the visual with this measure. 
Ideally it should return Dec2021, Dec2022, and so on

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

I tried it on my end with a column with type whole number:

tomfox_0-1664392789254.png

 

What kind of data type is your year column?

What is the error saying? Could it be that your visual is not procuding exact one value?

Feel free to send a screenshot!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

1 REPLY 1
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

I tried it on my end with a column with type whole number:

tomfox_0-1664392789254.png

 

What kind of data type is your year column?

What is the error saying? Could it be that your visual is not procuding exact one value?

Feel free to send a screenshot!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.