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 table in powerpivot, in that table i have a column (say column name A)which has date and time , now i have added another column(say column name B) where i need to bring the date from column A but the format should be like "MM/DD/YYYY", means i want to get rid of the time and just want the short date to be copied to the B colum, i have tired format(columnA,"MM/DD/YYYY") but it returns the value in date n time format, pleaes let me know if there any DAX founction or formula which i can use to get the date without the time stamp on it.
Regards,
Aryan
@Saryan wrote:
i have a table in powerpivot, in that table i have a column (say column name A)which has date and time , now i have added another column(say column name B) where i need to bring the date from column A but the format should be like "MM/DD/YYYY", means i want to get rid of the time and just want the short date to be copied to the B colum, i have tired format(columnA,"MM/DD/YYYY") but it returns the value in date n time format, pleaes let me know if there any DAX founction or formula which i can use to get the date without the time stamp on it.
Regards,
Aryan
It works in my test, can you confirm that?
Try this:
Column = FORMAT(DATE(YEAR([DateTime]),MONTH([DateTime]),DAY([DateTime])),"MM/DD/YYYY")
User | Count |
---|---|
5 | |
3 | |
3 | |
2 | |
1 |
User | Count |
---|---|
11 | |
7 | |
4 | |
4 | |
4 |