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
Anonymous
Not applicable

Trying to get multiple columns from a table onto the x axis

The data from our crm used to have the different criteria in a single column, making it easier to create a cluster column. However this has now changed so that the six options are now in columns when exported looking like this:

 

                       option a option b option c

Company 1       true       null         null

Company 2       null         true        null

Company  3       null          null      true

 

Any idea on how I can pull this into one column?

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Anonymous 

Is this what you want?

in PQ, select company column and unpivot other columns

1.png2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can may be use concatenate to club all the column values into a single column or can directly merge all columns in POwer Query editor.

 

I like to go with the 2nd option as it is creating a column. You can do something like below:

Go to Power Query Editor in Power BI using Transform Data option.

Go and select your data-set there:

Pragati11_0-1640008887460.png

Select all the columns you merge together by using Ctrl+Click on windown machine and right click to choose Merge columns option:

Pragati11_1-1640008987887.png

Once you select Merge Columns  option, you get a window where you can choose separator and name for this merged column: (My selected options are shown)

Pragati11_2-1640009053819.png

Once yoou click Ok, both columns are merged:

Pragati11_3-1640009163081.png

 You can follow same steps in your scenario.

 

Thanks,

Pragati

 

 

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

ryan_mayu
Super User
Super User

@Anonymous 

Is this what you want?

in PQ, select company column and unpivot other columns

1.png2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Thanks, looks like it has worked. Would this be updated as the CRM is updated or will this have to be done manually?

@Anonymous 

if the raw data changed, these action steps will apply to the new data automatically.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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! Prices go up Feb. 11th.

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.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.