Forum Discussion
Transferring time format to BI
Hello all,
This is my data in excel:
When I birng it in to BI, it changes it to this:
I can't uoload the BI file because I have to be a SuperUser (shame).
How do I get it back to the correct format?
The ultimate goal is to calculate the overtime wait and service time by year.
Thank you!
- Anonymous1 year ago
Thanks for the reply from Fowmy , please allow me to provide another insight:
Hi, e175429
Thanks for reaching out to the Microsoft fabric community forum.I believe your requirement might be better met by converting the data type to Duration.
Here is a screenshot of the relevant documentation:
Secondly, your Month and Year columns are not in date format. I suggest you combine these two columns and then change the data type to date. This will make it easier for you to handle the issue using DAX.
For more details, please refer to the relevant documentation:
Data types in Power BI Desktop - Power BI | Microsoft Learn
Auto date/time in Power BI Desktop - Power BI | Microsoft Learn
Time intelligence functions (DAX) - DAX | Microsoft Learn
I hope these suggestions are helpful to you. If you have any questions or need further assistance, please feel free to let me know!
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- Fowmy
Super User
- e175429
Helper IV
When I change the type, I get this:
There is no 12th hr and there is no AM
- AnonymousNot applicable
Thanks for the reply from Fowmy , please allow me to provide another insight:
Hi, e175429
Thanks for reaching out to the Microsoft fabric community forum.I believe your requirement might be better met by converting the data type to Duration.
Here is a screenshot of the relevant documentation:
Secondly, your Month and Year columns are not in date format. I suggest you combine these two columns and then change the data type to date. This will make it easier for you to handle the issue using DAX.
For more details, please refer to the relevant documentation:
Data types in Power BI Desktop - Power BI | Microsoft Learn
Auto date/time in Power BI Desktop - Power BI | Microsoft Learn
Time intelligence functions (DAX) - DAX | Microsoft Learn
I hope these suggestions are helpful to you. If you have any questions or need further assistance, please feel free to let me know!
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.