Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Dax, fill down in formula

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!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, this formula will help you

 

Formula = 
VAR LastNonBlankDate = CALCULATE ( LASTNONBLANK ( 'Date'[Date]; 1 );
FILTER ( ALL ( 'Date'); 'Date'[Date] <= EARLIER ( 'Date'[Date] )
&& NOT ( ISBLANK ( 'Table'[Value] ) )
) )
RETURN
CALCULATE (
SUM ( 'Table'[Value] ); FILTER ( ALL ( 'Date'); 'Date'[Date] = LastNonBlankDate ))

View solution in original post

4 REPLIES 4
rocky09
Solution Sage
Solution Sage

go to Query Editor and then

go to Transform tab

then select the column which you want to fill down

then select Fill --> Down

 

Capture.JPG

 

Anonymous
Not applicable

Thanx for answear

But i can't use Power query, because my column is returned using many tables. 

I need to use Dax

Screenshot_17.png

Any solution to this.  I'm trying to do the same thing!

Anonymous
Not applicable

Hi, this formula will help you

 

Formula = 
VAR LastNonBlankDate = CALCULATE ( LASTNONBLANK ( 'Date'[Date]; 1 );
FILTER ( ALL ( 'Date'); 'Date'[Date] <= EARLIER ( 'Date'[Date] )
&& NOT ( ISBLANK ( 'Table'[Value] ) )
) )
RETURN
CALCULATE (
SUM ( 'Table'[Value] ); FILTER ( ALL ( 'Date'); 'Date'[Date] = LastNonBlankDate ))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.