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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

How to make PowerBI gets dates in a row instead of a column

Hello everyone.

 

I´m new to PowerBI so my situation is this.

As shown on image 1, I have a table which has dates set as column headers, for the purpose of the data. However when I connect data, software doesn´t recognize this headers as dates and doesn´t make the usual summary (day, month or year options) as placed on image 2.

 

Is there a way PowerBI acknowlegde dates in rows instead of columns

 

11

22

 

Many thanks!

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

If after importing data, it shows as below, please select other columns except the dates columns, then unpivot columns

Capture11.JPGCapture13.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

If after importing data, it shows as below, please select other columns except the dates columns, then unpivot columns

Capture11.JPGCapture13.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@Anonymous - Could be wrong, but seems like you need to unpivot your date columns in Power Query editor.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

 

First of all many thanks for the quick reply!

The thing is Greg, that the dates are not in a column, but in a row and that is how I would like them to be. 

I can unpivot dates but what you recommend to place as header? 

If this is how you would like them to be then you cannot use Power BI. Keep using Excel.

If you want the data to be usable in Power BI then you will want to follow Greg's advice.

You could use the UI function Use Headers As First Row, which is Table.DemoteHeaders. 


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors