March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Expert,
I hope you can help me with this request.
I have a file with two amount by month for each code of product:
a) The first amount is the monthly sales and
B) The second amount is the accumulated by month.
Something like this:
code | Description | Jan | Acum Jan | Feb | Acum Feb | Mar | acum Mar | Apr | Acum Apr |
AA | Code Red | 500 | 500 | 758 | 1,258 | 996 | 2,254 | 1,509 | 3,763 |
AB | Code Green | 750 | 750 | 1,137 | 1,887 | 1,496 | 3,383 | 2,268 | 5,651 |
AC | Code Blue | 1,200 | 1,200 | 1,800 | 3,000 | 2,340 | 5,340 | 3,510 | 8,850 |
I need convert the file and unpivot the amounts columns to generate two columns of amounts by month.
Something like this:
code | Description | Month | Monthly Amt | Acumulated Amt |
AA | Code Red | JAN | 500 | 500 |
AA | Code Red | FEB | 758 | 1,258 |
AA | Code Red | MAR | 996 | 2,254 |
AB | Code Green | JAN | 750 | 750 |
AB | Code Green | FEB | 1,137 | 1,887 |
AB | Code Green | MAR | 1,496 | 3,383 |
AC | Code Blue | JAN | 1,200 | 1,200 |
AC | Code Blue | FEB | 1,800 | 3,000 |
AC | Code Blue | MAR | 2,340 | 5,340 |
Is it possible?
Thanks in advance
Regards
Solved! Go to Solution.
Hi @gomezc73
Please find the attached PBIX file.
I have used month sort to match your expected data, you can ignore those steps
Please check the Power Query steps
Proud to be a Super User! | |
Hi @gomezc73
Please find the attached PBIX file.
I have used month sort to match your expected data, you can ignore those steps
Please check the Power Query steps
Proud to be a Super User! | |
I tried repeating all the steps and it worked perfectly. Thank you very much. You are the best.
thank you so much for your early response.
Can you send me the steps, how Pivot the data?. i can't find the option to do that.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |