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

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.

Reply
Syndicate_Admin
Administrator
Administrator

Año fiscal y mes

Hola
Me gustaría combinar valores de FY22 y FY23 en visualizaciones. En archivos tengo fecha de calendario. El año fiscal comienza en octubre. ¿Cómo puedo hacer una columna con Mes y fecha fiscal?
Quiero hacer sth así, pero como puedes ver las fechas están desordenadas. (Acabo de fusionar P01 con un año y creo que es un enfoque equivocado),
example3.PNGGracias por la ayuda de antemano,
Aleks

8 REPLIES 8
Syndicate_Admin
Administrator
Administrator

@ALEKSGOD

Puede intentar crear algunas columnas

year = year('Table'[Date])
month = month('Table'[Date])
fiscalyear = if('Table'[month]>=10,'Table'[year]+1,'Table'[year])
fiscalmonth = if('Table'[month]>=10,'Table'[month]-9,'Table'[month]+3)
yearmonth = 'Table'[fiscalyear]*100+'Table'[fiscalmonth]
Column = "P"&right("0"&'Table'[fiscalmonth],2)&":"&'Table'[fiscalyear]

1.png

Por favor, vea el archivo adjunto a continuación

Tengo el mismo problema con la función If:
error.png

Cuando abrí el archivo de usted también hay errores. ERROR2.png

No vi el mensaje de error en su archivo PBIX. ¿Cuál es el mensaje de error en su propio archivo pbix?

Este es el error:
DIM Date error.png


¿Podría usted pls proporcionar el archivo PBIX?

desafortunadamente, no 😞 puedo

Syndicate_Admin
Administrator
Administrator

Hola amitchandak,
Esta fórmula no funciona. Generalmente, tengo un problema con la fórmula If.
with result.pngwithout result.png
cuando agrego <10 no puedo continuar con ResultifTrue.

Syndicate_Admin
Administrator
Administrator

@ALEKSGOD ,

Necesita la siguiente columna

Período = "P" & format(if(month([Date]) <10, month([Date])+3, month([Date]) -9 ),"00")

Año Período = "P" & format(if(month([Date]) <10, month([Date])+3, month([Date]) -9 ),"00")& "-" & if(month([Date]) <10, Year([Date]), Year([Date]) +1 ) //puede cambiar esta lógica

Ordenar período de año = if(mes([Fecha]) <10, Año([Fecha]), Año([Fecha]) +1 )*100 + if(mes([Fecha]) <10, mes([Fecha])+3, mes([Fecha]) -9 )

marcar ordenar Período del año como columna de ordenación del Período del año

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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