Showing results for 
Search instead for 
Did you mean: 
vivianloi Frequent Visitor
Frequent Visitor

Calculating Text Field with Date Filter


I wanted to format my date in a different way, so I created a Calculated Column using DAX to have it as "mm/dd/yyyy ddd". However, when I put [Date of Incident NewNew] inside a Card Visual, for the "Last Date", it does not return me with the latest date. How do I create a measure, where the [Date of Incident NewNew] is returned, with the latest [Date of Incident]. Will appreciate any help!


You can see here that the latest date is 09/22/2018, not 12/21/2017



Much appreciated!!


Chihiro Established Member
Established Member

Re: Calculating Text Field with Date Filter

Instead of creating Text column.


Click on the Column or measure highlight it.


Then go to Modeling tab. Formatting section, click on Format: drop down.


Find the format of your choice (MM/dd/yyyy)

Community Support Team
Community Support Team

Re: Calculating Text Field with Date Filter

hi, @vivianloi

    Because the data type of field Date of Incident NewNew is Text. so the last value is sort by text not by date.

You can add a measure to achieve it.

Measure 3 = CALCULATE(VALUES(Table2[Date of Incident NewNew]),FILTER(Table2,MAX(Table2[Date])=Table2[Date]))




Best Regards,



Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.