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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Suliman
New Member

Import excel file

I have a table in excel, that I need to import into my data model i Power BI. I need to be able to slice and dice the dates (day, week, month, year). But I am not sure how to transform this data best.
1 ACCEPTED SOLUTION

We'd really need to see sample data @Suliman - see links below.

 

But on the face of it, I see you need two things:

  1. A date table. See my link below about creating one in Power Query.
  2. When you bring the data in, You'll want to select all but the date columns, and on the Transform tab, select "Unpivot Other Columns" and normalize the data. See links below on that too.

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum

 

Creating a Dynamic Date Table in Power Query

 

What is Normalizing Data?

See the Normalizing an example table section of this paper



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

4 REPLIES 4
az38
Community Champion
Community Champion

Hi @Suliman 

please, provide us a little bit more information about your data 🙂 maybe, example of your excel 

 

in common case you do not need any transformation. just import and drop columns into your visuals in report mode


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

It is for about 20 cities and more than 20 days

Thank you for your reply ..
My data is daily covid-19 cases in some cities .. the title of columns are dates : for example :
City name 3/3/20. 4/3/20.
London. 4. 4. etc

We'd really need to see sample data @Suliman - see links below.

 

But on the face of it, I see you need two things:

  1. A date table. See my link below about creating one in Power Query.
  2. When you bring the data in, You'll want to select all but the date columns, and on the Transform tab, select "Unpivot Other Columns" and normalize the data. See links below on that too.

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum

 

Creating a Dynamic Date Table in Power Query

 

What is Normalizing Data?

See the Normalizing an example table section of this paper



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors