Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi @SLima
Try this code to add a new column:
Calculada =
VAR _A =
CALCULATE (
MAX ( 'Table'[Coluna 1] ),
FILTER ( ALL ( 'Table' ), 'Table'[Coluna 1] < EARLIER ( 'Table'[Coluna 1] ) )
)
RETURN
CALCULATE (
MAX ( 'Table'[Coluna 2] ),
FILTER ( ALL ( 'Table' ), 'Table'[Coluna 1] = _A )
)
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi @SLima
Try this code to add a new column:
Calculada =
VAR _A =
CALCULATE (
MAX ( 'Table'[Coluna 1] ),
FILTER ( ALL ( 'Table' ), 'Table'[Coluna 1] < EARLIER ( 'Table'[Coluna 1] ) )
)
RETURN
CALCULATE (
MAX ( 'Table'[Coluna 2] ),
FILTER ( ALL ( 'Table' ), 'Table'[Coluna 1] = _A )
)
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
@SLima you would need a row identifier in the dataset
Column =
VAR _0 =
CALCULATE ( MAX ( 'Table'[RowIdentifier] ) )
VAR _1 =
CALCULATE (
MAX ( 'Table'[Column2] ),
FILTER ( ALL ( 'Table' ), 'Table'[RowIdentifier] = _0 - 1 )
)
RETURN
_1
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
20 | |
19 | |
13 | |
12 |
User | Count |
---|---|
41 | |
29 | |
23 | |
22 | |
22 |