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 a todos
Necesito tu ayuda para agregar un hacer un cálculo de columnas para mi tabla.
Tengo este tipo de tabla, donde quiero añadir una nueva columna "Actividad entre octubre de 2020 y Diciembre 2020" que nos telonde si la persona hace actividad durante este período o no.
y la segunda columna calcula "Actividades de Nbr durante este período por id"
Como ejemplo:
Fecha de actividades | Id | Actividad entre octubre de 2020 y diciembre de 2020 | Actividades de Nbr durante este período por id |
12/02/2021 | id1 | no | 0 |
11/02/2021 | id1 | no | 0 |
02/03/2021 | id1 | no | 0 |
27/01/2021 | id2 | no | 0 |
28/01/2021 | id3 | no | 0 |
29/01/2021 | id4 | no | 0 |
30/01/2021 | id5 | no | 0 |
31/01/2021 | id1 | no | 0 |
01/02/2021 | id2 | no | 0 |
02/02/2021 | id6 | no | 0 |
03/02/2021 | id6 | no | 0 |
04/02/2021 | id7 | no | 0 |
05/02/2021 | id8 | no | 0 |
06/02/2021 | id9 | no | 0 |
07/02/2021 | id10 | no | 0 |
08/02/2021 | id11 | no | 0 |
04/12/2020 | id12 | Sí | 1 |
05/12/2020 | id1 | Sí | 6 |
06/12/2020 | id10 | Sí | 2 |
02/11/2020 | id1 | Sí | 6 |
03/11/2020 | id2 | Sí | 3 |
04/11/2020 | id1 | Sí | 6 |
05/11/2020 | id11 | Sí | 1 |
06/11/2020 | id10 | Sí | 2 |
20/10/2020 | id1 | Sí | 6 |
21/10/2020 | id1 | Sí | 6 |
22/10/2020 | id2 | Sí | 3 |
23/10/2020 | id3 | Sí | 1 |
24/10/2020 | id4 | Sí | 1 |
25/10/2020 | id1 | Sí | 6 |
26/10/2020 | id2 | Sí | 3 |
27/10/2020 | id8 | Sí | 1 |
Gracias por su ayuda.
Mejor
Solved! Go to Solution.
No @MFATNASSI,
Cree dos clumns calculados.
Activity between October 2020 and Decembre 2020 =
VAR x = [Activities Date].[MonthNo]
VAR y = [Activities Date].[Year]
RETURN
IF(
y = 2020 && x >= 10 && x <= 12,
"yes", "no"
)
Nbr Activities during this period by id =
COUNTX(
FILTER( Sheet1, [id] = EARLIER([id]) && [Column] = "yes" ),
[id]
) + 0
Saludos
Lionel Chen
Si este post ayuda , entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
No @MFATNASSI,
Cree dos clumns calculados.
Activity between October 2020 and Decembre 2020 =
VAR x = [Activities Date].[MonthNo]
VAR y = [Activities Date].[Year]
RETURN
IF(
y = 2020 && x >= 10 && x <= 12,
"yes", "no"
)
Nbr Activities during this period by id =
COUNTX(
FILTER( Sheet1, [id] = EARLIER([id]) && [Column] = "yes" ),
[id]
) + 0
Saludos
Lionel Chen
Si este post ayuda , entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
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 | |
2 | |
1 |