Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!