Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hola Expertos
¿Cómo modificaría el siguiente DAX para que la tabla incluya el mes actual en su totalidad? y filtra los meses futuros | Períodos
_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")
)
)
y
Solved! Go to Solution.
Utilice eomonth( today(), 0 )
_MonthYearTable =
DISTINTO(
SELECTCOLUMNS(
FILTRO(
«conjuntos de datos financieros»,
'Conjuntos de datos financieros'[Fecha] <= EOMONTH(TODAY(),0)
),
"MonthYear", FORMAT('Conjuntos de datos financieros'[Fecha], "mmm yy"),
"year", YEAR('Conjuntos de datos financieros'[Fecha]),
"_MonthYearSort", FORMAT('Conjuntos de datos financieros'[Fecha], "AAAAmm")
)
)
Utilice eomonth( today(), 0 )
_MonthYearTable =
DISTINTO(
SELECTCOLUMNS(
FILTRO(
«conjuntos de datos financieros»,
'Conjuntos de datos financieros'[Fecha] <= EOMONTH(TODAY(),0)
),
"MonthYear", FORMAT('Conjuntos de datos financieros'[Fecha], "mmm yy"),
"year", YEAR('Conjuntos de datos financieros'[Fecha]),
"_MonthYearSort", FORMAT('Conjuntos de datos financieros'[Fecha], "AAAAmm")
)
)