Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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! | |
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
85 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |