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
Anonymous
Not applicable

¿Comienzo de la semana en blanco?

Hola

He creado un informe que muestra las fechas iniciadas semanalmente desde 2018

Este informe ha funcionado perfectamente hasta el 30 de abril y no estoy seguro de por qué.

La columna "init" es la fecha de inicio en el sistema, la columna "testtt" es cómo soy capaz de crear las mismas incraments semanales para los 3 años, y la columna "Init Start of Week test" es las semanas que quiero mostrar.

Como puede ver, el 30 de abril, la columna "Init Start of Week test" está en blanco.... sigue en blanco hasta la fecha actual.

A continuación se muestran las fórmulas que usé para obtener cada columna...

testtt : if(and(and(AND(Query1[InitYear]-"2018",Query1[init month]-1),Query1[init day]>6),Query1[init day]<8),Query1[INIT DATE]-1, if(and(and(Query1[InitYear]-"2018",Query1[init month]-12),Query1[init day]-31),Query1[INIT DATE]-2,if(and(Query1[InitYear]-"2018""2018"",Query1[init month]-1),Query1[init day]>15),Query1[INIT DATE]-1,if(and(Query1[InitYear]-"2018",Query1[init month]>-2),Query1[INIT FECHA]-1,if(and(Query1[InitYear]-"2019",Query1[init month]-12),Query1[init day]-31),Query1[INIT DATE]-3,if(and(Query1[InitYear]-3 "2019",Query1[init month]-1),Query1[init day]>-6),Query1[INIT DATE]-2,if(and(Query1[InitYear]-"2019",Query1[init month]-1) ,Query1[init day]>15),Query1[INIT DATE]-2,if(and(Query1[InitYear]"2019",Query1[init month]>-2),Query1[INIT DATE]-2,if(and(Query1[InitYear]"2020",Query1 [init month]-12),Query1[init day]-31),Query1[INIT DATE]-4,if(and(Query1[InitYear]""2020",Query1[init month]-1),Query1[init day]>-6),Query1[INIT DATE]-3,if(and((init month]-3,if(and(((init month]-1),Query1[init day]>-6),Query1[INIT DATE]-3,if(and(((init DATE]-3,if(and(((init month](and(()init month]&if(and(((init month]>y(Query1[InitYear]-"2020",Query1[init month]-1),Query1[init day]>15),Query1[INIT DATE]-3,if(and(Query1[InitYear]-"2020",Query1[init month]-2),Query1[INIT DATE]-3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,if(and(AND(Query1[InitYear]-"2020",Query1[init month]-3),Query1[init day]<5),Query1[INIT DATE]-4,if(and(And(Query1[InitYear]-"2020",Query1[init month]>-3) ,Query1[init day]>-5),Query1[INIT DATE]-4,if(And(Query1[InitYear]-"2020",Query1[init month]-4),Query1[init day]<2),Query1[INIT DATE]-4,Query1[INIT DATE])))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Init Start of Week test ( Init Start of Week test) - DATEADD(Query1[testtt],-1*WEEKDAY(Query1[testtt])+weekday(STARTOFYEAR(Query1[testtt]),DAY)
Por favor, hágamelo saber si mi pregunta no tiene sentido...
¡Gracias!
Sarah

10 REPLIES 10

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.