Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Quiero calcular la fecha de finalización actual del año fiscal (abril - marzo)
Solved! Go to Solution.
Hola, pruebe con esta columna calculada:
CurrentEndFiscalYear =
IF (
MONTH ( 'Table'[Date] ) <= 3;
DATE ( YEAR ( 'Table'[Date] ); 03; 31 );
DATE ( YEAR ( 'Table'[Date] ) + 1; 03; 31 )
)
saludos
Victor
Eso no es mucho para seguir. Vea si mi Inteligencia del Tiempo el Camino Duro proporciona una manera diferente de lograr lo que usted está buscando.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
No es un profesional en Dax. Por favor, puede ayudar en esto. Probé fórmulas, pero obteniendo datos equivocados.
No tengo claro lo que quieres. ¿Está diciendo que desea tener una medida "total ytd" que va del 1 de abril de 2019 al 31 de marzo de 2020, por ejemplo? Si es así, tal vez algo como:
Measure =
VAR __Date = MAX([Date])
VAR __Year = YEAR(__Date)
VAR __FiscalEndMonth = 3
VAR __FiscalEndDay = 31
VAR __FiscalBeginMonth = 4
VAR __FiscalBeginDay = 1
VAR __FiscalBegin = DATE(__Year - 1,__FiscalBeginMonth,__FiscalBeginDay)
VAR __FiscalEnd = DATE(__Year, __FiscalEndMonth,__FiscalEndDay)
RETURN
SUMX(FILTER('Table',[Date] >= __FiscalBegin && [Date] <= __FiscalEnd),[Column])
No, señor.
| FECHA DE INFORME | CURRFISCALYEAREND |
| 09-01-2015 | 31-03-2015 |
| 09-05-2015 | 31-03-2016 |
Hola, pruebe con esta columna calculada:
CurrentEndFiscalYear =
IF (
MONTH ( 'Table'[Date] ) <= 3;
DATE ( YEAR ( 'Table'[Date] ); 03; 31 );
DATE ( YEAR ( 'Table'[Date] ) + 1; 03; 31 )
)
saludos
Victor
Gracias hermano, funcionó.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.