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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ilcaa722
Frequent Visitor

return text from list

i have a table in PQ. 2 columns, 'Month" and "Year". there are only 2 entries i want to retreive them and make a string

 

my PQ table

Month, Year

August, 2023

 

output as a string= August_2023

 

how can i accomplish

 

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @ilcaa722 

You can add a custom column

Text.Combine({[Month],Text.From([Year])},"_")

vxinruzhumsft_0-1695696976837.png

Best Regards!

Yolo Zhu

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

 

Prachi_31
Regular Visitor

Hi ilcaa722,

You have to create custom column in power query using your month and year column.

Just simply create custom column named month_year and add the following DAX in power query :
month_year = [Month] & "_" & [Year]

Regards,
Prachi

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

 
ronrsnfld
Super User
Super User

Use the Add Custom Column wizard.

? not sure I follow. how would adding a column generate a string value using the 2 fields in my table?

When you select that wizard, a window will open which prompts you to add a formula. Merely concatenate the two columns. eg =[Month] & "_" & Text.From([Year])

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.