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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
TheBIGuy_PBI
Helper II
Helper II

Trying to combine text from multiple fields in a row in a table, into one row

Hi, I'm trying to combine multiple fields from a table into a single record, for each question

This is my original table

TheBIGuy_PBI_2-1681237538775.png____________________________________________________________________________________________________________________________


My goal is to turn this into two single lines with a carriage return between the specific fields.

This is what I'm trying to figure out how to do, below.


TheBIGuy_PBI_3-1681237660278.png


I'm doing this because in my Stacked Bar Chart, I need a tooltip pop up that not just shows the single
ANSWERTEXT/TOTAL RESP/PERCENT/QUESTIONTOTAL
as a one row popup, but to show all the possible Answers in one pop up.  I think with the data combined and the <NewLine> Carriage returns, I can show every Answer to each question in one pop up.
_________________________________________________________________________________________________________________________________________
In the example that I'm trying to modify below, you see one answer on one line, when you hover over the bar.  The goal is to show multiple lines for each popup per question no matter which bar on the question I hover the mouse over.

 

TheBIGuy_PBI_4-1681238667951.png

_________________________________________________________________________________________________________________________________________

Any help is really appreciated.  And happy to provide additional info.

 

Thanks, Steve





 

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

it's not quite there yet but i thought i'd provide a start:

 

Power query custom column:

 

  [Question] & " " & [Answer] & Character.FromNumber(10) & Number.ToText([response]) & " "& Number.ToText([percent]) &" " & Number.ToText([total])

 

DOLEARY85_0-1681243680137.png

 

just need to find a way to bring duplicate question rows together and then remove the name of the question from the 2nd row.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

View solution in original post

3 REPLIES 3
TheBIGuy_PBI
Helper II
Helper II

Thanks, up to this point this is a solution.
ConcatenateX is pretty good for combining different fields into one row but the challenge i have is how to only combine the text grouping them by the question.

I put another question out there for this part. Once I get that done, my problem will have been solved.

Ashish_Mathur
Super User
Super User

Hi,

Share data in a format the can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

it's not quite there yet but i thought i'd provide a start:

 

Power query custom column:

 

  [Question] & " " & [Answer] & Character.FromNumber(10) & Number.ToText([response]) & " "& Number.ToText([percent]) &" " & Number.ToText([total])

 

DOLEARY85_0-1681243680137.png

 

just need to find a way to bring duplicate question rows together and then remove the name of the question from the 2nd row.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.