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
Hello everybody,
Somebody knows, how can I use Fill Down with column formula?
I have 2 column, date and value:
1. 01/01/2017 - 500
2. 01/02/2017 - blank
3. 01/03/2017 - blank
4. 01/04/2017 - 1000
5. 01/04/2017 - blank
need to:
1. 01/01/2017 - 500
2. 01/02/2017 - 500
3. 01/03/2017 - 500
4. 01/04/2017 - 1000
5. 01/04/2017 - 1000
in this situation I can't use Power Query
thanks!
Solved! Go to Solution.
Hi @Anonymous
Try Using this calculated column
New Value = VAR LastNonBlankDate = CALCULATE ( LASTNONBLANK ( TableName[Date], 1 ), FILTER ( ALL ( TableName ), TableName[Date] <= EARLIER ( TableName[Date] ) && NOT ( ISBLANK ( TableName[Value] ) ) ) ) RETURN CALCULATE ( SUM ( TableName[Value] ), FILTER ( ALL ( TableName ), TableName[Date] = LastNonBlankDate ) )
Hi,
Using this same question as an example, does anyone knows how I can do up filling instead?
Meaning with date and value as below:
1. 01/01/2017 - 500
2. 01/02/2017 - blank
3. 01/03/2017 - blank
4. 01/04/2017 - 1000
I need:
1. 01/01/2017 - 500
2. 01/02/2017 - 1000
3. 01/03/2017 - 1000
4. 01/04/2017 - 1000
instead.. Thanks!!
Hi @Anonymous
Try Using this calculated column
New Value = VAR LastNonBlankDate = CALCULATE ( LASTNONBLANK ( TableName[Date], 1 ), FILTER ( ALL ( TableName ), TableName[Date] <= EARLIER ( TableName[Date] ) && NOT ( ISBLANK ( TableName[Value] ) ) ) ) RETURN CALCULATE ( SUM ( TableName[Value] ), FILTER ( ALL ( TableName ), TableName[Date] = LastNonBlankDate ) )
Hello, Zubair,
I am also looking for fill-up values solution. I carefully studied this code you suggested and it seemed to be no different from from fill-down. Could you please advice if this code is indeed different and what is the code for "fill-down" solution. Thank you
@Anonymous
Just wanted to share an option of a formula for fill-up, maybe someone will find it helpful:
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 |
---|---|
93 | |
85 | |
84 | |
73 | |
49 |
User | Count |
---|---|
142 | |
133 | |
110 | |
68 | |
55 |