This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello,
I am trying to write a Dax to show the selected year. But when no year is selected in the slicer, I want to the title to show the Max value of the date.
I worte:
Dates =
Solved! Go to Solution.
@Anonymous , Please check parenthesis position in your measure
try like
meausre =
var _max = maxx(allselected(dates), Dates[Dates])
return
maxx(filter(Dates, Dates[Date] =_max), dates[year month])
@Anonymous , use in place of
SELECTEDVALUE(Dates[Year Month], (MAX(Dates[Year Month])))
Use this
maxx(filter(Dates, Dates[Date] = maxx(allselected(dates), Dates[Dates]) ), dates[year month])
or
maxx(filter(allselected(dates), Dates[Date] = maxx(allselected(dates), Dates[Dates]) ), dates[year month])
Thanks @amitchandak for your reply. I tried both Dax measures, but I get an error message from both. Am I doing anything wrong?
Thanks
@Anonymous , Please check parenthesis position in your measure
try like
meausre =
var _max = maxx(allselected(dates), Dates[Dates])
return
maxx(filter(Dates, Dates[Date] =_max), dates[year month])
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |