'how to create a new column with adding fixed value to another column cell value
Solution 1:[1]
You can just make it by saying:
C = ( [A] - 1 ) * 20 + 100
Alternative if you have a different value in [B] you can use the LOOKUPVALUE function and it'd look like this:
C = ( [A] - 1 ) * 20 + LOOKUPVALUE( Table[B], [B], MAX( [B] ) )
Solution 2:[2]
I'm not entirely sure what you're after but I'm guessing it's with random values in B and calculations based on that. If that's what you're talking about this should work:
C =
IF(
[B] = BLANK(),
LOOKUPVALUE(
'Table'[B],
'Table'[A],
CALCULATE(
LASTNONBLANK( 'Table'[A], 1),
FILTER(
'Table',
'Table'[A] <= EARLIER( 'Table'[A] )
&& not ISBLANK( 'Table'[B] )
)
)
) +
( [A] - CALCULATE(
LASTNONBLANK('Table'[A], 1),
FILTER(
'Table',
'Table'[A] <= EARLIER( 'Table'[A] )
&& not ISBLANK( 'Table'[B] )
)
) ) * 20,
[B]
)
This is what an example would look like:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 |



