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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors