Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I am sharing my Pbix file here.
I am trying to convert from datetime like
2/23/2020 10:08:00 AM to 10:00 AM.
The reason is that I am trying to create visual like this:
I have a column called "IncidentDate".
I was able to convert the DateTime to Hour like this:
But, what I am trying to get as a final product is like:
10:00 AM
8:00 AM
3:00 PM
How do I go about doing this?
Thanks.
Solved! Go to Solution.
@JustinDoh1 Well, one way would be to create a new column like this:
Column = IF([Hour]<=12,[Hour] & ":00 AM", ([Hour]-12) & ":00 PM")
@JustinDoh1 Well, one way would be to create a new column like this:
Column = IF([Hour]<=12,[Hour] & ":00 AM", ([Hour]-12) & ":00 PM")
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
103 | |
68 | |
47 | |
39 | |
37 |