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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Populate values in blank rows

Hi All,

 

I have 2 fields in my table as shown below.I have to create a new column which should populate the last non blank value.

i.e: may (data) 50 should populate in a new column for all the months.

 

Table:

Harika1104_1-1621599932256.png

 

Required Output:

Harika1104_2-1621599950145.png

 

Thanks in Advance.

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I can clearly understand your requirement, I think you can try my steps:

  1. Create a month column as the number type like this:
Month=Month([Date])

v-robertq-msft_0-1621849813403.png

 

  1. Create a calculated column like this:
Column =

var _maxmonth=

MAXX(FILTER(ALL('Table'),[Amount]<>BLANK()),[Month])

return

SUMX(FILTER(ALL('Table'),[Month]=_maxmonth),[Amount])

v-robertq-msft_1-1621849813420.png

 

And you can get what you want.

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I can clearly understand your requirement, I think you can try my steps:

  1. Create a month column as the number type like this:
Month=Month([Date])

v-robertq-msft_0-1621849813403.png

 

  1. Create a calculated column like this:
Column =

var _maxmonth=

MAXX(FILTER(ALL('Table'),[Amount]<>BLANK()),[Month])

return

SUMX(FILTER(ALL('Table'),[Month]=_maxmonth),[Amount])

v-robertq-msft_1-1621849813420.png

 

And you can get what you want.

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below. It is for creating a new column.

 

Picture1.png

 

New Column CC =
CALCULATE (
LASTNONBLANKVALUE ( 'Table'[Date], SUM ( 'Table'[Amount] ) ),
ALL ( 'Table' )
)
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi @Jihwan_Kim ,

 

Thanks for quick reply.

 

I tried to implement the DAX you used but it's throwing few errors.

Please find the below screenshot for your reference.

Harika1104_0-1621602780664.png

 

Hi, @Anonymous 

Thank you for your feedback.

Please share your sample pbix file's link here, then I can try to look into it.

I cannot know how your columns' data type by only seeing the screenshot, for instance, so please share your sample pbix file's link.

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.