Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have in power query the following table
Code Grp Name Qtr_Year
| 400 | 23 | BGT | Q1_2025 |
| 400 | 23 | BGT | Apple |
Now I want the below output
Code Grp Name Qtr_Year Ctgy
| 400 | 23 | BGT | Q1_2025 | Apple |
I have 10000 rows of Codes in the data
Can you please help?
Thanks
Hi @Anonymous
It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!
Looking forward to your reply!
Best Regards,
Community Support Team _ C Srikanth.
Hi @Anonymous
Thank you for being part of the Microsoft Fabric Community.
As highlighted by @Ashish_Excel , the proposed approach appears to effectively address your requirements. Could you please confirm if your issue has been resolved?
If you are still facing any challenges, kindly provide further details, and we will be happy to assist you.
Best Regadrs
Cheri Srikanth
Hi,
This M code works
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Grouped Rows" = Table.Group(Source, {"Code ", "Grp ", " Name"}, {{"Count", each Text.Combine(_[Qtr_Year],"")}})
in
#"Grouped Rows"Hope this helps.
Hi @Anonymous
Sorry for the late response.
Please do folow the mentioned points in detail to resolve your issue.
If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.
@pankajnamekar25 Thanks it works till Step 6 but
powerquery
CopyEdit
Text.Combine([Qtr_Year], " ") & " " & Text.Combine([Name], " ")
This merges the values from both columns into a single row.
I get error or maybe I am missing something. Thanks
@Anonymous
try this
[Qtr_Year] & " " & [Name]
Thanks,
Pankaj
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
@pankajnamekar25 Unfortunately something is wrong with the logic.
Code Grp Name Qtr_Year
| 400 | 23 | BGT | Q1_2025 |
| 400 | 23 | BGT | Apple |
500 24 AVT Q3_2024
500 24 AVT Orange
Please refer to the above format and advise. Thanks
Hello @Anonymous
You can achieve this in Power Query by using Group By and Text.Combine. Here's how:
Steps in Power Query
powerquery
CopyEdit
Text.Combine([Qtr_Year], " ") & " " & Text.Combine([Name], " ")
This merges the values from both columns into a single row.
Thanks,
Pankaj
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 171 | |
| 110 | |
| 91 | |
| 55 | |
| 45 |