Is there a way in Power BI Desktop to transform multiple text column values into a single row grouped by another column

0 votes

Is there a way in Power BI Desktop to transform multiple text column values into a single row, grouped by another column?
I have a dataset in Power BI Desktop where multiple text values appear across different rows for the same category. I need to consolidate these values into a single row while keeping them grouped by another column. What are the best Power Query or DAX techniques to achieve this transformation efficiently?

9 hours ago in Power BI by Evanjalin
• 16,180 points
8 views

1 answer to this question.

0 votes

Yes, you can transform multiple text values into a single row grouped by another column using Power Query or DAX:

Power Query (Recommended Approach)

  1. Load your data into Power Query.
  2. Group by the desired column (e.g., Category).
    • Go to Transform → Group By
    • Select the grouping column (e.g., "Category").
    • Choose All Rows or aggregate using Text.Combine([Column], ", ").
  3. Expand or modify as needed.

DAX Approach (Using CONCATENATEX)

Create a new measure or column:

CombinedText = CONCATENATEX( VALUES(Table[TextColumn]), Table[TextColumn], ", ")

This method works well but may not update dynamically in tables with slicers.

answered 9 hours ago by anonymous
• 16,180 points

Related Questions In Power BI

+1 vote
1 answer

Is there a way to convert JSON data to readable table in power bi

Follow these steps step 1 - Click on ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 18,520 points
14,206 views
0 votes
1 answer

If there a way to have the current month by default in a KPI representing MoM% in Power BI

The PREVIOUSMONTH DAX function can be used ...READ MORE

answered Feb 16, 2022 in Power BI by CoolCoder
• 4,420 points
2,439 views
0 votes
1 answer

Printing Mapbox Visuals in Power BI? – Is there a way to print Mapbox visuals correctly in Power BI without losing quality?

Printing and preparing Mapbox's good-quality visuals through ...READ MORE

answered Feb 11 in Power BI by anonymous
• 16,300 points
46 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,501 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,857 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,637 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,350 points
1,774 views
0 votes
1 answer
0 votes
1 answer

Is there a way to track and visualize variable name changes within a group in Power BI, and what DAX techniques can help?

Tracking and Visualizing Variable Name Changes in ...READ MORE

answered 3 days ago in Power BI by anonymous
• 16,180 points
27 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP