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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
srkase
Helper IV
Helper IV

converting columns into rows

Hi all... 

 

I want to convert the Months ie., [columns] Apr, May, June etc... into rows with out unpivoting the table... [ I have almost 6.5 lakh records of multiple sheets combined as a single sheet using query.  when converting it takes a lot of time and during refresh also it takes lot of time]

 

OR

 

I want to insert month number into a calculated column ie., a new column as month number and values Apr means 4, May means 5 etc..

 

Is it possible?

 

My same data

YEARSHORTNAMEDEALERTYPEPRODUCTAPRMAYJUNJULAUGSEPOCTNOVDECJANFEBMARTOTCATEGORY
20182019ABASTDPROD100000000000010PRODUCT
20182019ACBSTDPROD200000000000020PRODUCT
20182019ADASTDPROD300000000000030PRODUCT
20182019ABASTDCAB0401000000000050CAB
20182019ABASTDCAB0501000000000060CAB
20182019ACASTDCAB000505050505050505050450CAB
20182019ADASTDCAB000505050505050505050450CAB
20192020ABASTDPROD100000000000010PRODUCT
20192020ACBSTDPROD200000000000020PRODUCT
20192020ADASTDPROD300000000000030PRODUCT
20192020ABASTDCAB0401000000000050CAB
20192020ABASTDCAB0501000000000060CAB
20192020ACASTDCAB000505050505050505050450CAB
20192020ADASTDCAB000505050505050505050450CAB

 

Regards

 

Ravikumar.S

 

3 REPLIES 3
amitchandak
Super User
Super User

In the matrix table, you can outcome like that. Any specific reason you want to store data into another table like that.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube


@amitchandak wrote:

In the matrix table, you can outcome like that. Any specific reason you want to store data into another table like that.


YES... NEED TO put month in a Slicer for selection and workout things...

 

Hi,

If you want a single month slicer, you will have no option but to use the "Unpivot Other columns" feature.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.