Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
Hi @ilcaa722
You can add a custom column
Text.Combine({[Month],Text.From([Year])},"_")
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.
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.
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])
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
8 | |
7 | |
6 |