Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I have a brainbuster (for me)
I have a table which I want to Pivot. All content is Text.
Pic1
I would like to Pivot the table to get the following result:
Pic2
This presents me with the following problems:
1) Pivot wont work because I have multiple rows with same EmplID and Code.
2) To solve that I thought of grouping, summerizing code 1000 and summerize code 2000. but that doesn't work because its is Text.
3) Converting Text to Numeric works only for the 1000 and 2000 code, which is all I need, but the other codes will present an error.
I think it I need multiple steps to solve this?
Split the Content column? (how?)
Any thoughts?
Solved! Go to Solution.
Hi @PeterJansen2,
3) Converting Text to Numeric works only for the 1000 and 2000 code, which is all I need, but the other codes will present an error.
If the other codes is not needed/necessary, you can replace the error values with null or 0(or any other values you want to show) after Converting Text to Numeric. Then you should be able use the Pivot option get your expected result. ![]()
Final result:
Regards
Hi @PeterJansen2,
3) Converting Text to Numeric works only for the 1000 and 2000 code, which is all I need, but the other codes will present an error.
If the other codes is not needed/necessary, you can replace the error values with null or 0(or any other values you want to show) after Converting Text to Numeric. Then you should be able use the Pivot option get your expected result. ![]()
Final result:
Regards
Thanks for your reply.
As far as I know, a visual won't do the trick.
I need the pivotted data it in my tables, to do some calculations/measures etc with it.
@PeterJansen2 Take look at this link it might help for you
http://community.powerbi.com/t5/Desktop/Table-transformation-pivot-unpivot/m-p/231829#M103296
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |