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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Kumarun
Helper I
Helper I

Power query

my data source year column contains hundred of distinct years but when I import it in PowerBI only one year 1905 is seen everywhere

 

What is the problem

 

Data type is date

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Kumarun 

 

Do you have year column of number type in your data source? And what is your expected result in Power BI? If you want to have only years in Power BI and keep it as number type too, remove the automatically generated "Changed Type" step and change this column to number type manually. 

 

If your Year column is of other type or format in data source. In Power Query Editor, remove the "Changed Type" step and extract Year part from the Year column and convert it to number type. If you want to change this column to date type, you need to give it month and day values. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

After importing, don't apply the date change type on column.

In a custom column, put following formula to convert to date (Replace Year Column appropriately)

If your years are already in number format, you can remove Number.From below

= #date(Number.From([Year Column]),1,1))

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors