Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Modifique DAX para incluir el mes COMPLETO actual en lugar de <=Today()

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

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

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")

)

)

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

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")

)

)

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.