Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
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.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
@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)
User | Count |
---|---|
84 | |
79 | |
71 | |
47 | |
42 |
User | Count |
---|---|
109 | |
54 | |
50 | |
40 | |
40 |