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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello champs,
I need the closest date to end of the selected year for in {EventDate] in following formulas
could you pls proivde some sample data and expected output?
Proud to be a Super User!
Hello, Ryan
Here I have a picture
I need selected one, in blue ,that's the closed one to the of the year for 2023. OrderID = EventOrder and [EventDate] = Event Date, selected year is 2023
still not understand your request. Where is the eventorder info? what do you mean eventdate= event date?
Proud to be a Super User!
Hello , I don't know to better explain but I believe it with the MAX formula..
I think I got it this works.
VAR SelectedYear = SELECTEDVALUE('Calendar'[Year])
RETURN
CALCULATE(
MAX(CecCaseEvent[EventDate]),
YEAR(CecCaseEvent[EventDate]) = SelectedYear
)
I tried to describe(related columns) on the picture, sorry for confusion.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 41 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 109 | |
| 108 | |
| 40 | |
| 33 | |
| 26 |