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.
¿Cómo puedo contar rolloing para todos los años que tengo en la tabla .?
Supongamos que la tabla original
Fecha de identificación
1 1/1/2020
2 1/2/2020
3 1/3/2020
4 1/1/2021
5 1/2/2021
6 1/3/2021
7 1/4/2021
y dar
2020 2021
Recuento 3 7
??
Solved! Go to Solution.
Medida de recuento : =
VAR _currentyear =
MAX ( 'Año'[Año] )
devolución
SI (
HASONEVALUE ( 'Año'[Año] ),
CALCULATE ( COUNTROWS ( Data ), 'Year'[Year] <= _currentyear )
)
Vínculo al archivo pbix de ejemplo
Medida de recuento : =
VAR _currentyear =
MAX ( 'Año'[Año] )
devolución
SI (
HASONEVALUE ( 'Año'[Año] ),
CALCULATE ( COUNTROWS ( Data ), 'Year'[Year] <= _currentyear )
)
Vínculo al archivo pbix de ejemplo
Si no tiene una tabla de fechas. Puede crear una columna de año
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 |