March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Buenas tardes, estaria precisando obtener un filtro que me permita identificar la correlatividad de los asientos.
Caso propuesto: Cuento con asientos contables el cual son de 900 registros aproximadamente, debo realizar en PBI una manera donde pueda visualizar/obtener o identificar aquellos asientos que tuvieron saltos.
1001
1002
1003
1005 Excepción, salto 1 asiento.
1006
1009 Excepción, salto 2 asientos.
Seria como la función GAPS en ACL
Solved! Go to Solution.
Hi @Anonymous ,
We can create a measure as below to work on it.
Measure =
VAR currentindex =
MAX ( 'Table'[Index] )
VAR lastindex =
CALCULATE (
MAX ( 'Table'[Index] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Index] < currentindex )
)
VAR diff = currentindex - lastindex
RETURN
IF ( diff = 1, BLANK (), "Excepción, salto " & diff & " asientos." )
Pbix as attached.
Hi @Anonymous ,
We can create a measure as below to work on it.
Measure =
VAR currentindex =
MAX ( 'Table'[Index] )
VAR lastindex =
CALCULATE (
MAX ( 'Table'[Index] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Index] < currentindex )
)
VAR diff = currentindex - lastindex
RETURN
IF ( diff = 1, BLANK (), "Excepción, salto " & diff & " asientos." )
Pbix as attached.
Muchisimas gracias! para que me funcione tuve que eliminar el MAX del currentindex
La forma correcta seria sacar el MAX en el currentindex, o si no, estaria tomando el ultimo valor. Ejemplo: si se cuenta con 190 registros, tomaria el registro 190 como mayor.
en el power query, anyde una columna index
en una medida agara el numero corriente
sustrae 1 del indice corriente and usa LookupValue() para agarrar el numero del recorde precediente
si el diferencia entre los dos numeros is mas que 1, esto da el numero de "saltos"
si quiere hacer un screen-share sobre la problem, me habla
Help when you know. Ask when you don't!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
58 | |
52 |
User | Count |
---|---|
196 | |
125 | |
107 | |
68 | |
65 |