Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Basava
Frequent Visitor

Need to show "Latest Date" text value in place of max date row in date column(this data type is date

Hi team,

I have date column in my table, in that date column i need to show "Latest date" text in place of max date row....

I have used calculated column with below dax....

Column=

IF('table'[date]=MAX('table'[date]),      "Latest_date",FORMAT('table'[date],"MM/DD/YYYY")

But it is taking data type as text....

When i used this column in slicer i am not getting exact values

  • Requirment is, if i select latest date in slicer that should not be changed when data will be added
  • Example: i have data from jan1 to jan20, in date column jan20 should show as "Latest date",,this column should use in slicer,,,,if user select "latest date" that should be like that...
  • In future if jan 21 data will added,jan21 should show as "Latest date",,
  • In slicer by default jan21 should show as "latest date" without selecting by user it should change dynamically when new date added
    • Please help me on this
2 REPLIES 2
amitchandak
Super User
Super User

@Basava , A column can not take slicer value. So max/latest selected date in a measure is  

 

Max = maxx(allselected(Table) , Table[Date])

 

This can be used by measures for filtering

 

In table column  you can only have static one for selection

 

example 

 

if([Date] = Max(Table[Date]), "Latest", [Date] & "")

 

In this case you can save slicer on Latest

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

In this case i have used calculated column with the help of below dax

If(table[date]=max(table[date]),"latest",[date]))

But it is showing data type as text,

I have used this in slicer and selected "latest" and data is not filtering correctly

If i used date colunmn in slicer, it is giving correct results......

Here my concern is using calculated column in slicer is correct or not if useing calculated column in slicer is correct means how can we create......

I have several measures used in report with the help of "table" date column and filtering with calculated column is not giving proper output

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.