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
Analitika
Post Prodigy
Post Prodigy

Generar calendario solo por años y trimestres sin fechas

No tengo fechas en la tabla, sólo año y trimestre, ¿cómo generar calendario por trimestres solamente?

Ahora hago eso:

Fecha - CALENDARIO (
FECHA ( Tabla 1[Año], 1, 1),
FECHA ( Tabla 1[Año], 12, 31)
)
pero esto da rsult equivocado en los objetos visuales, ya que tengo espacios en blanco en visual entonces, también las medidas no cuenta LY como no se puede encontrar este período del año
Así que necesito hacer algo así
Fecha - CALENDARIO (
FECHA ( Table1[Year], Month(EndofQuarter(Table1[Qrt])), Day(EndofQuarterMonth(Table1[Qrt])),
FECHA ( Table1[Year], Month(EndofQuarter(Table1[Qrt])), Day(EndofQuarterMonth(Table1[Qrt])))
)
1 REPLY 1
v-deddai1-msft
Community Support
Community Support

Hola @Analitika ,

Le sugiero que cree una nueva tabla de fechas mediante la siguiente fórmula:

Dim_Date = 
ADDCOLUMNS (
CALENDAR (DATE(2019,01,01), TODAY()-1),
"Year", YEAR ( [Date] ),
"Quarter", FORMAT ( [Date], "Q" ),
"YearQuarter" ,YEAR ( [Date] )&FORMAT ( [Date], "Q" ))

Y puede crear una nueva columna en la tabla de hechos combinando la columna YEAR y QUARTER. Cree una relación entre la tabla de fechas y la tabla de hechos por la nueva columna.

Si esta ayuda post, por favor considere aceptarla como la solución para ayudar a otros a encontrarla más rápidamente.

El mejor respeto,

Dedmon Dai

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.

Top Solution Authors