Forum Discussion
admin11
Memorable Member
5 years agoHow to modify expression to display Jan till May 2021 ?
Hi All
Below expression return Jan till Dec :-
YTD DATE =
var _max = maxx(allselected('Date'), 'Date'[Date])
var _min = minx(allselected('Date'), 'Date'[Date])
return format(_min, "MMM-YYYY") & " to " & format(_max, "MMM-YYYY") & " SALES BY BRAND_C"
May i know how to modify the above expression , so that it will return Jan till May ?
admin11 , something like this
YTD DATE =
var _max = today()
var _min = minx(allselected('Date'), 'Date'[Date])
return format(_min, "MMM-YYYY") & " to " & format(_max, "MMM-YYYY") & " SALES BY BRAND_C"
2 Replies
- amitchandak
Super User
admin11 , something like this
YTD DATE =
var _max = today()
var _min = minx(allselected('Date'), 'Date'[Date])
return format(_min, "MMM-YYYY") & " to " & format(_max, "MMM-YYYY") & " SALES BY BRAND_C"- admin11
Memorable Member
Thank you very much it work