This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi there,
I have data which I need to unpivot as shown below:
Please note there are many customers and attibutes, so I don't want to split into seperate queries! is it possible within a single query?
Thank You so much!
Alex
Solved! Go to Solution.
Hey @Anonymous
to achieve what you want, you need three steps.
This is how my sample data looks like
First step, unpivot the columns CA-A1 - CX-AX then your table will look like this:
Second Step - Split the column Attribute in 2 columns:
select the proper delimiter, maybe it's " - " on your data, here it's just the dash, after that your data will look like this:
Third step
Mark the column that contains all the attributes, here its Attribute.2 and Pivot the column, choose Value column for the values:
Hopefully, this provides what you are looking for.
Regards,
Tom
Hey @Anonymous
to achieve what you want, you need three steps.
This is how my sample data looks like
First step, unpivot the columns CA-A1 - CX-AX then your table will look like this:
Second Step - Split the column Attribute in 2 columns:
select the proper delimiter, maybe it's " - " on your data, here it's just the dash, after that your data will look like this:
Third step
Mark the column that contains all the attributes, here its Attribute.2 and Pivot the column, choose Value column for the values:
Hopefully, this provides what you are looking for.
Regards,
Tom
@Anonymous , refer if this blog can help
Thank you I was able to solve my problem with the help of this link! 🙂
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 18 |