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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to combine multi columns into a single attribute so that it can be used to plot graphs etc

sample.PNGI want to calculate effort by week. And I want to have a attribute which will contain all the columns CW1, CW2, CW3 etc so that I can create bar charts etc and plot the dimensions WEEK (CW1, cw2 ETC) 

like week versus name something like that

 

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

If I understand your question correct, you wish to have a single column only showing CW1/CW2/CW3?

 

This can be achieved if you go to "Edit Queries", select the three columns and select "Unpivot" under the "Transform" tab.

View solution in original post

7 REPLIES 7
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Create a new cocatenated column (CONCATENATE dax function) in your dataset using CW1, CW2, CW3. This will end up in a single column having concatenated values for these 3 columns. Then you can use it on a chart.

 

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!!

Anonymous
Not applicable

But I cant use this then for filters or list. I want the those columns as  list output. 

dax
Community Support
Community Support

Hi @Anonymous ,

I am not clear  about your requirement? Did you mean that you want to use Slicer list to filter "cw"? If so, I think you could to unpivot the table, then use  values (column name) to create a new table , create relationship between them, then it should work. 

In addition, if possible could you please inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

What is CW1, CW2. How the exists in the table and what is the final output you want.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

week.PNG

Anonymous
Not applicable

If I understand your question correct, you wish to have a single column only showing CW1/CW2/CW3?

 

This can be achieved if you go to "Edit Queries", select the three columns and select "Unpivot" under the "Transform" tab.

Anonymous
Not applicable

No pivoting.

If the variable week is there it will have all the column names like cw1, cw2 etc in a list and can be used as a filter

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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