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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Seb_77
New Member

No muestre el valor futuro de AVERAGEX y SUMMARIZE

Hola

He estado eliminando todas las fechas futuras de mis paneles con la ayuda de una columna de valor futuro en la tabla de calendario.

Sin embargo, estoy luchando para eliminar fechas futuras en el siguiente caso:

Mi valor de inventario se detiene en abril de 2020, pero el promedio de los doce meses finales continúa, quiero que se detenga en abril también.

0_Average_inventory_TTM = 

VAR CALENDAR_YTD = 

CALCULATETABLE(
    'CALENDAR',
    DATESINPERIOD('CALENDAR'[Date],LASTDATE('CALENDAR'[Date]),-1,YEAR),
    'CALENDAR'[FutureDate] = "PAST"
)

VAR CALENDAR_MONTH_YTD =

SUMMARIZE(
    CALENDAR_YTD,
    'CALENDAR'[Year],
    'CALENDAR'[Month],
    "AMOUNT",
    CALCULATE(                              
        [1_AMOUNT_REVERSE_YTD],
        'ACCOUNT FAMILY'[P&L] = "300",
        'CALENDAR'[FutureDate] = "PAST"
    )
)

RETURN

CALCULATE(
    AVERAGEX(CALENDAR_MONTH_YTD,[AMOUNT]),
    'CALENDAR'[FutureDate] = "PAST")

2020-04-21 13_42_14-BFT Financial infographics V3 - Power BI Desktop.png

Traté de eliminar la fecha futura con el filtro :

'CALENDAR'[FutureDate] - "PAST", por lo general funciona bien, pero no esta vez.
¿Podría ayudarme a encontrar una solución?
Gracias
2 REPLIES 2
amitchandak
Super User
Super User

Asegúrese de que el valor de inventario y el valor medio TTM estén controlados. O usa el calendario de fecha sensimos o el filtro de fecha relativa o nivel visual para tener datos <

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

danextian
Super User
Super User

Hola @Seb_77

Puede usar el filtrado de fechas relativo. Agregue un campo de fecha al filtro visual/página/informe y filtre como en la imagen siguiente:

relative date filtering.png






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors