The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a timestamp field that I would like to pull the hour with AM and PM. I have HOUR('Call Logging'[CALL_DATE]) but it displays millitary time. Any help is appreciated.
Solved! Go to Solution.
Hi @Anonymous ,
Do you want to extract Hour at each time and add AM/PM later?
If I understand correctly, please refer the followng measure,
Measure =
HOUR(MAX(Dates[Cdate])) &" "& RIGHT(MAX(Dates[Cdate]),2)
If it doesn't meet your requirement, could you please show the exact expected result?
It will be helpful if you can show us the desire result based on fake data.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Do you want to extract Hour at each time and add AM/PM later?
If I understand correctly, please refer the followng measure,
Measure =
HOUR(MAX(Dates[Cdate])) &" "& RIGHT(MAX(Dates[Cdate]),2)
If it doesn't meet your requirement, could you please show the exact expected result?
It will be helpful if you can show us the desire result based on fake data.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Not sure I got it. As long as any datetime is detected as date type you can change its format to the desired format using the format option
Instead of HOUR() you can use FORMAT('Call Logging'[CALL_DATE], "h AM/PM")
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I'm using DQ as my data source.