Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'd like to add a column to my table that will identify if the result in column [MonthStart] is the latest date. Here is an example of my data table:
I'd like to add this column to the right. Essentially, if the date in column [MonthStart] is the latest return "Latest", if not then return "Not the Latest".
The MonthStart column is already formatted as a date data type: (mmmm yyyy)
an you assist me in the DAX?
Thank you,
Andrew
Solved! Go to Solution.
Hi @Anonymous,
Did you mean to check the current date if it is the last one of the current category?
If that is the case, please take a look at the following formula if helps:
Calcualte column =
VAR temp =
ADDCOLUMNS (
CALCULATETABLE (
VALUES ( Table[Month Start] ),
FILTER ( Table, [Car Make] = EARLIER ( Table[Car Make] ) )
),
"Date", DATEVALUE ( "1 " & [Month Start] )
)
RETURN
IF (
Table[Month Start] = FORMAT ( MAXX ( temp, [Date] ), "MMM yyyy" ),
"Latest",
"Not the Latest"
)
Regards,
Xiaoxin Sheng
Hi @Anonymous,
Did you mean to check the current date if it is the last one of the current category?
If that is the case, please take a look at the following formula if helps:
Calcualte column =
VAR temp =
ADDCOLUMNS (
CALCULATETABLE (
VALUES ( Table[Month Start] ),
FILTER ( Table, [Car Make] = EARLIER ( Table[Car Make] ) )
),
"Date", DATEVALUE ( "1 " & [Month Start] )
)
RETURN
IF (
Table[Month Start] = FORMAT ( MAXX ( temp, [Date] ), "MMM yyyy" ),
"Latest",
"Not the Latest"
)
Regards,
Xiaoxin Sheng
hi @Anonymous
Try this
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |