Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola
Estoy tratando de presentar los datos a mi equipo de la siguiente manera, ¿puede ayudarme con el DAX.
Patrón de informe:
YearMonth | Saldo de apertura | CierreBalance | Varianza |
FY19-20 | 125000 | 145000 | -20000 |
Dataset:
YearMonth | Saldo de apertura | CierreBalance |
201907 | 125000 | 85000 |
201908 | 135000 | 115000 |
201909 | 145000 | 115000 |
201910 | 115000 | 145000 |
201911 | 115000 | 135000 |
201912 | 85000 | 125000 |
202001 | 125000 | 85000 |
202002 | 135000 | 115000 |
202003 | 145000 | 115000 |
202004 | 115000 | 145000 |
202005 | 115000 | 135000 |
202006 | 85000 | 145000 |
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:
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.
¿ayudará esto? https://www.youtube.com/watch?v=XjAMee2LhKE
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |