Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SDVN
Helper I
Helper I

Help needed: Pivot for half of the the table

Dear Experts,

 

Greetings! I am new for power BI and I was given a project to work on to practice but this data in excel seems little conplicated to handle in Power BI. 

 

The data that am using is as shown in the picture. I want to get the count of the Monthly count of "Trial" of 2023. But you can see that years (2023 and 2024) are not in a single coulmn. The years are mentioned in a merged cell about the months. So i have 2 sets of months, one for 2023 and another for 2024. How do I analyse the monthly data of each year? Can someone help? Please let me know if i have failed to mention any details. Thank you so much 🙂

 

If you want the sample data to try, do let me know. I can create a new one and share. 

 

SDVN_1-1681132936453.png

 

 

Regards,

Sid 

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Yeah i can see where you're struggling, not the best data set to start off with,

 

could you remove the columns for 2024, promote the row headers and pivot the data in the month columns using power query?

View solution in original post

8 REPLIES 8
SDVN
Helper I
Helper I

Thank you so much! I have just started to learn Power BI and there is so much to learn, with the support of kind experts like you, the learning journey wouldn't be very difficult. 🙂 Thank you for the help..

DOLEARY85
Resident Rockstar
Resident Rockstar

No problem, happy to help 🙂

SDVN
Helper I
Helper I

Sure! Thank you so much for helping 🙂 here is the data: 

 

https://docs.google.com/spreadsheets/d/1tqqj0_lbCIUPqBrJKSVlw7G-2zoPSb70/edit?usp=share_link&ouid=10...

 

Regards,

Sid

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

if you have the sample data i'd be happy to take a look for you,

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Sure! Thank you so much for helping :slightly_smiling_face: here is the data: https://docs.google.com/spreadsheets/d/1tqqj0_lbCIUPqBrJKSVlw7G-2zoPSb70/edit?usp=share_link&ouid=10... Regards, Sid
DOLEARY85
Resident Rockstar
Resident Rockstar

Yeah i can see where you're struggling, not the best data set to start off with,

 

could you remove the columns for 2024, promote the row headers and pivot the data in the month columns using power query?

Okay.. can i do pivot for all the months columns? Can you help me how to do that? I could do only once (Unpivot), by selecting the "Jan" column but that did not help. Would you mind helping me understand a bit? 🙂 

 

SDVN_0-1681150737987.png

 

DOLEARY85
Resident Rockstar
Resident Rockstar

No problem,

 

Just select all the month columns first before selecting unpivot

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.