Category / Section
                                    
                                Displaying the Latest Date in Dashboards: A Step-by-Step Guide
                
                Published:
                
            
    To show the latest date in a dataset, you can follow these steps to create an expression column and display it in the desired format.
Steps to Achieve the Requirement
- 
Create an Expression Column
Use theMAXfunction to create an expression column that retrieves the latest date from your column. The syntax is as follows:MAX(DateColumn) - 
Format the Date
To display the date in theDD/MM/YYYYformat, use the appropriate expression based on your source server:- 
For SQL Server:
CONVERT(varchar(10), [datevalue], 103) - 
For PostgreSQL:
to_char([datevalue], 'DD/MM/YYYY') 
 - 
 - 
Display the Date in a Text Widget
In the text widget, use the createt expression column in the Label parameter. The syntax is as follows:{{:Expression_name}}
When you preview the dashboard, the date value will be displayed in the specified format.