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
Tengo este escenario simple en el que necesito calcular un último 5 meses (sin incluir el mes actual) para una transacción determinada.
Tengo una tabla Fecha y la vinculo a mi tabla de transacciones. Por razones desconocidas, el gráfico muestra una sexta barra en lugar de 5.
¿Podría alguien ayudar a arreglar esto?
El script DAX es:
Acciones TY =
VAR EndDate =
EOMONTH ( HOY (), -1 )
VAR StartDate = EDATE ( EOMONTH ( HOY (), -1 ), -5 ) +1
devolución
CALCULAR (
SUM(UserActions[t_UserActions]),
CALCULATETABLE ( 'Fecha', FILTRO ( 'Fecha', 'Fecha'[Fecha] >= StartDate & 'Fecha' [Fecha] <= EndDate ) ) ) )
Muchas gracias,
sujeto
Solved! Go to Solution.
@GuyA , Pruebe una medida como
Acciones TY =
VAR EndDate =
EOMONTH ( HOY (), -1 )
VAR StartDate = EOMONTH ( HOY (), -6 ) +1
devolución
CALCULAR (
SUM(UserActions[t_UserActions]),FILTER ( 'Fecha', 'Fecha'[Fecha] >= StartDate && 'Fecha'[Fecha] <= EndDate ) )
@GuyA , Pruebe una medida como
Acciones TY =
VAR EndDate =
EOMONTH ( HOY (), -1 )
VAR StartDate = EOMONTH ( HOY (), -6 ) +1
devolución
CALCULAR (
SUM(UserActions[t_UserActions]),FILTER ( 'Fecha', 'Fecha'[Fecha] >= StartDate && 'Fecha'[Fecha] <= EndDate ) )
¡Brillante! Muchas gracias.
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 | |
2 | |
2 | |
2 | |
1 |