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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Experts
How would you modify the following DAX so the table includes the current month in full...and filters out future months | periods
_MonthYearTable =
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Financial Datasets',
'Financial Datasets'[Date] <= TODAY() -- Filter out future dates
),
"MonthYear", FORMAT('Financial Datasets'[Date], "mmm yy"),
"Year", YEAR('Financial Datasets'[Date]),
"_MonthYearSort", FORMAT('Financial Datasets'[Date], "YYYYmm")
)
)and
Solved! Go to Solution.
Use eomonth( today(), 0 )
_MonthYearTable =
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Financial Datasets',
'Financial Datasets'[Date] <= EOMONTH(TODAY(),0)
),
"MonthYear", FORMAT('Financial Datasets'[Date], "mmm yy"),
"Year", YEAR('Financial Datasets'[Date]),
"_MonthYearSort", FORMAT('Financial Datasets'[Date], "YYYYmm")
)
)
Use eomonth( today(), 0 )
_MonthYearTable =
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Financial Datasets',
'Financial Datasets'[Date] <= EOMONTH(TODAY(),0)
),
"MonthYear", FORMAT('Financial Datasets'[Date], "mmm yy"),
"Year", YEAR('Financial Datasets'[Date]),
"_MonthYearSort", FORMAT('Financial Datasets'[Date], "YYYYmm")
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!