cancel
Showing results for 
Search instead for 
Did you mean: 
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
MariusT
Helper II
Helper II

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 logoDACertAzCert

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.



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Anonymous
Not applicable

week.PNG

MariusT
Helper II
Helper II

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
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors