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.
hola
Quiero crear una columna de semana personalizada para mi ejercicio (agosto a julio).
El año fiscal 2019 es del 1 de agosto de 2019 al 31 de julio de 2020
El año fiscal 2020 es del 1 de agosto de 2020 al 31 de julio de 2021
El primero de agosto es el primer día de la semana. La segunda semana comienza el 8 de agosto y así sucesivamente...
Ayúdame a crear una columna.
Gracias de antemano.
Solved! Go to Solution.
Probar columnas como
Date = CALENDAR(date(2014,01,01),date(2020,12,31))
Week Start Date with Year = var _1 =QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7) return STARTOFYEAR('Date'[Date]) + if(_1<52,_1,51)*7
Week No = var _1= QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7)+1 return if(_1<52,_1,52)
Week Day = MOD(DATEDIFF('Date'[Week Start Date with Year],[Date],DAY),7)+1
Probar columnas como
Date = CALENDAR(date(2014,01,01),date(2020,12,31))
Week Start Date with Year = var _1 =QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7) return STARTOFYEAR('Date'[Date]) + if(_1<52,_1,51)*7
Week No = var _1= QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date],"7/31"),'Date'[Date],DAY),7)+1 return if(_1<52,_1,52)
Week Day = MOD(DATEDIFF('Date'[Week Start Date with Year],[Date],DAY),7)+1
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |