Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have a kinda big PowerBI file where about a dozen tables are based on one Folder of CSV files. The system providing these CSV files now switched the date column from DD.MM.YYYY to YYYY-MM-DD for new files.
Whats the best and easiest way to make it possible to handle both date formats so its no difference whether a new or old file is processed?
Harry.
Solved! Go to Solution.
Hi, @Anonymous
Please correct me if I wrongly understood your question.
If each file has a different format type in the DATE column, then, in my opinion, the best way to deal with it is by using Power Query in Power BI and change it by using the option LOCALE. This will make all files have a standard format in the DATE column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Hi @Anonymous ,
According to your question, I think the conversion can be realized quickly in powerbi desktop. You can create a column on the desktop and use format to customize the date type. The format type to achieve a unified multi-file date is as follows:
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Please correct me if I wrongly understood your question.
If each file has a different format type in the DATE column, then, in my opinion, the best way to deal with it is by using Power Query in Power BI and change it by using the option LOCALE. This will make all files have a standard format in the DATE column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
@Anonymous , bring them as text , Create a new column in dax and mark as date
if(search("-",[Column],,0) >0 , Date(left([Column],4) ,Mid([Column,4],6,2), right([Column],2)) ,
Date(right([Column],4) ,Mid([Column,4],4,2), left([Column],2)) )
In power Query you do have Start, Middle and end , in case you want to do in power query refer (index start from 0 there)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
67 | |
57 | |
50 | |
36 | |
34 |
User | Count |
---|---|
84 | |
74 | |
56 | |
45 | |
44 |