We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
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.
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))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |