We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I am trying to pivot 12 coloumns into two coloumns of Actual value and Target value. The thing is it is pivoted in two different raws, having 12 raws of actual then 12 raws of target. and it is annoying since I cant benifit from them being in the same raw to do comparisons. Here is the photo.
Please help me it is super important. I already do with th pivoting the "Don't aggregate" option.
Thanks in advance.
can you share the intial structure of your table with some dummy data.
that would be helpful
best regards
Hello,
It is like this but much bigger, I first unpivot the months colouns then pivot the target actual so I have the coloumn of Months then Target Then actual. But then the Target and actual are separated in different coloumns like my first photo in the original post.
Thanks a lot
| Source.Name.1 | KPI code | Year to day average. | Target-Actual | January | February | March | April | May | June | July | August | September | October | November | December |
| Plant 1 | L9 | 5 | Target | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 |
| Plant 1 | L9 | 3 | Actual | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 |
| Plant 2 | L9 | 156787 | Target | 14150 | 12757 | 14497 | 14389 | 14400 | 13755 | 14446 | 6033 | 14313 | 13679 | 14290 | 10078 |
| Plant 2 | L9 | null | Actual | 14106,8 | 14220 | 15221,5 | 13816 | 15371 | 13034 | 13796,25 | 6348 | 13369,5 | 14292 | 0 | 0 |
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |