Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin 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
I need to do a transformation on a table that I not sure how to accomplish.
Monthly we download a csv file from our credit card vendor that is then turned around and uploaded into our accounting system. The csv consists of one header row with invoice header information and all the remaining rows are detail line item rows for the resepctive invoice.
What I have been tasked with is to transform the file so that each line item Detail row is its own invoice. So instead of having one header row and numerous detail lines, I want one header row for each line item detail.
First column in each row identifies it as either a 'H'eader row, or 'D'etail row. Header row has invoice number (Column C) which needs to have number updated with a -1, -2... -N (depending on number of detail lines). Header also has sum of details (Column N) which needs to be updated to be same number as respective detail line.
Only thing that needs to change on detail line is update Invoice number (Column C) to match Header invoice number.
Before:
After:
Here is link with the sample data as shown.
Thanks for any help.
Solved! Go to Solution.
Hi @mattbrice,
Based on your requirement, I have made a sample report. Please make a reference here, hope it helps.![]()
Thanks,
Xi Jin.
Hi @mattbrice,
Based on your requirement, I have made a sample report. Please make a reference here, hope it helps.![]()
Thanks,
Xi Jin.
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 |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |