Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi all,
My Measure is returning 12/31/2025 when I use
KPI Max Date 15M =
VAR __tbl_Dates =
SELECTCOLUMNS(
'Date Table',
"Date",'Date Table'[Date],
"Quarter", 'Date Table'[QQYY]
)
VAR __tbl_Dates_Filtered =
FILTER(
__tbl_Dates,
[Quarter] IN ALLSELECTED('Date Table'[QQYY])
)
VAR __Max_Date =
MAXX(__tbl_Dates_Filtered,[Date])
RETURN
__Max_Date
Solved! Go to Solution.
Hi @tecumseh -Try checking if your Date Table includes any dates for 2025. If it does, and they aren't filtered out properly, they might be affecting your result.
can you check with below modified measure
KPI Max Date 15M =
VAR __tbl_Dates =
SELECTCOLUMNS(
'Date Table',
"Date",'Date Table'[Date],
"Quarter", 'Date Table'[QQYY]
)
VAR __Selected_Years =
VALUES('Date Table'[Year]) -- for year in the selection
VAR __tbl_Dates_Filtered =
FILTER(
__tbl_Dates,
[Quarter] IN ALLSELECTED('Date Table'[QQYY]) &&
YEAR([Date]) IN __Selected_Years -- Filter only the selected year(s)
)
VAR __Max_Date =
MAXX(__tbl_Dates_Filtered,[Date])
RETURN
__Max_Date
I hope this works
Proud to be a Super User! | |
Happy to Help @tecumseh !!
Proud to be a Super User! | |
Hi @tecumseh -Try checking if your Date Table includes any dates for 2025. If it does, and they aren't filtered out properly, they might be affecting your result.
can you check with below modified measure
KPI Max Date 15M =
VAR __tbl_Dates =
SELECTCOLUMNS(
'Date Table',
"Date",'Date Table'[Date],
"Quarter", 'Date Table'[QQYY]
)
VAR __Selected_Years =
VALUES('Date Table'[Year]) -- for year in the selection
VAR __tbl_Dates_Filtered =
FILTER(
__tbl_Dates,
[Quarter] IN ALLSELECTED('Date Table'[QQYY]) &&
YEAR([Date]) IN __Selected_Years -- Filter only the selected year(s)
)
VAR __Max_Date =
MAXX(__tbl_Dates_Filtered,[Date])
RETURN
__Max_Date
I hope this works
Proud to be a Super User! | |