Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a problem with creating my payroll
At the end I want to get the following table:
My data has been imported into the program in this format:
The problem has always been that I do not have my own table in which the desired terms (Sales Turnover, Surcharge C, etc.) are associated with the values.
How do I get it now that I choose the column header as a row heading without first changing it in the Power Query Editor? I can not find a visual that offers me this feature.
Another possibility would be to create my own table in which I create a list (Sales Turnover, Surcharge C, etc.) and then link them to values from another table.
Best regards,
Frank
Hi @Anonymous ,
My original data table is like this:
Then, calculate :
GS = P3[ST] + P3[+SC]
GS-b = P3[GS] - P3[-BC]
KF1 = P3[GS-b] -P3[-M-C]
KF2 = P3[KF1] - [-F-C] - [-C-C] - [-D-C] - [-C-C_1] - [-P-C] - [-Pr-C] - [-S-C]
KF3 = P3[KF2] -[-Fix-C]
Then, export the data and transpose in excel ( As you know, because of the calculated column, you can’t transpose in ‘Edit Query’ ):
Then, import the data and calculate the ‘sum’ and sort each row:
(My data’s sort is wrong, just for reference)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |