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
kkalyanrr
Helper V
Helper V

Elección del primer y último mes del año fiscal

Hola

Estoy tratando de presentar los datos a mi equipo de la siguiente manera, ¿puede ayudarme con el DAX.


Patrón de informe:

YearMonthSaldo de aperturaCierreBalanceVarianza
FY19-20125000145000-20000


Dataset:

YearMonthSaldo de aperturaCierreBalance
20190712500085000
201908135000115000
201909145000115000
201910115000145000
201911115000135000
20191285000125000
20200112500085000
202002135000115000
202003145000115000
202004115000145000
202005115000135000
20200685000145000




2 REPLIES 2
v-eqin-msft
Community Support
Community Support

No @kkalyanrr,

Lo siento por mi respuesta tardía...

Utilice la siguiente fórmula para crear una nueva tabla:

Table 2 =
ADDCOLUMNS (
    SUMMARIZE (
        'Table',
        "YearMonth",
            "FY" & MIN ( 'Table'[Year] ) & "-"
                & MAX ( 'Table'[Year] ),
        "Opening Balance",
            MINX (
                FILTER ( 'Table', 'Table'[YearMonth] = MIN ( 'Table'[YearMonth] ) ),
                [Opening Balance]
            ),
        "ClosingBalance",
            MAXX (
                FILTER ( 'Table', 'Table'[YearMonth] = MAX ( 'Table'[YearMonth] ) ),
                [ClosingBalance]
            )
    ),
    "w", [Opening Balance] - [ClosingBalance]
)

La salida final tiene este aspecto:

12.24.2.1.PNG

Por favor, eche un vistazo a la pbix aquí.

Saludos
Eyelyn Qin

Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

vanessafvg
Super User
Super User

¿ayudará esto? https://www.youtube.com/watch?v=XjAMee2LhKE





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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