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.
Problema:
DAX debe comprobar hasta que el valor anterior sea 0 (En valor), una vez que su valor no es 0, me da la fecha (Resultado necesario) como se indica a continuación.
Solved! Go to Solution.
Hola @pras_hant10
tratar de una medida
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
No @pras_hant10
probar una medida
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
casi lo mismo
Result =
var _curDate = Table[Date]
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
No @pras_hant10
probar una medida
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
Gracias por su ayuda, por mis disculpas, estoy buscando la lógica para el campo columna.
casi lo mismo
Result =
var _curDate = Table[Date]
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
Gracias. funciona
Hola @pras_hant10
tratar de una medida
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
@pras_hant10 , Tratar como
if(Table[Invalue]-0,maxx(filter(Table, table[Date]<earlier(Table[Date])),Table[Date]),Table[Date])
Intenté lo mismo, pero el resultado de abajo que estoy recibiendo.
El resultado debe ser 01/02/2020 desde la fila 2a hasta la última, ya que hay 0 in valor.
Tratar
if(Table[Invalue]-0,maxx(filter(Table, table[Date]<earlier(Table[Date]) && Table[Invalue]-0),Table[Date]),Table[Date])
Hola @pras_hant10
tratar de una medida
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
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 |