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.
Tengo una columna con el numero de semana y otra con el numero de ventas por semana:
La semana W7 es la semana actual y las semanas W8 y W9 son las proximas semanas.
Semana | Ventas
------------------
W1 | 12
W2 | 11
W3 | 19
W4 | 1
W5 | 2
W6 | 112
W7 | 16
W8 | 0
W9 |
Y queria tener una medida que me devolviese
Semana | Nueva Columna
----------------------------
W1 | 16
W2 | 16
W3 | 16
W4 | 16
W5 | 16
W6 | 16
W7 | 16
W8 | 16
W9 | 16
o esto tambien me valdria:
Semana | Nueva Columna
----------------------------
W7 | 16
W8 | 16
W9 | 16
Muchas Gracias
Solved! Go to Solution.
nueva columna =
var _max = maxX(filter(Table, [Sales] >0 && not(isblank([Sales]))),[Semana])
devolución
sumx(filter(Table, [Week] =_max),[Sales])
nueva columna =
var _max = maxX(filter(Table, [Sales] >0 && not(isblank([Sales]))),[Semana])
devolución
sumx(filter(Table, [Week] =_max),[Sales])
Gracias por tu respuesta.
La he probado y me devuelve los iguiente:
Semana | Nueva columna
-----------------------------
W1 | 12
W2 | 11
W3 | 19
W4 | 1
W5 | 2
W6 | 112
W7 | 16
W8 |
W9 |
No entiendo porque no me sale me hace un total.
mi Columna Sales es una columna calculada, no se si puede verse afectado por eso.
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 |