cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Cascada dinámica que compara el período actual con el último período con el desglose

Estoy tratando de crear un visual que muestre el mes actual frente al monto de ventas del mes pasado desglosado por distribuidor. Este objeto visual debe actualizarse mensualmente en función de la fecha máxima de los datos de ventas actuales. en este momento estoy filtrando manualmente, debe haber una mejor manera de hacer esto.

bo_wang5_1-1631939166087.png

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hay @bo_wang5 ,

Puedes usar una medida como filtro así:

Measure =
VAR PreviousMonthStart =
    EOMONTH ( TODAY (), -2 ) + 1
VAR CurrentMonthEnd =
    EOMONTH ( TODAY (), 0 )
RETURN
    IF (
        MAX ( 'Table'[Date] ) >= PreviousMonthStart
            && MAX ( 'Table'[Date] ) <= CurrentMonthEnd,
        1
    )

MEASURE FILTER.PNG

Saludos

Helado

Si este post Ayuda, a continuación, por favor considere Acéptalo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Hay @bo_wang5 ,

Puedes usar una medida como filtro así:

Measure =
VAR PreviousMonthStart =
    EOMONTH ( TODAY (), -2 ) + 1
VAR CurrentMonthEnd =
    EOMONTH ( TODAY (), 0 )
RETURN
    IF (
        MAX ( 'Table'[Date] ) >= PreviousMonthStart
            && MAX ( 'Table'[Date] ) <= CurrentMonthEnd,
        1
    )

MEASURE FILTER.PNG

Saludos

Helado

Si este post Ayuda, a continuación, por favor considere Acéptalo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors