Forum Discussion
Anonymous
5 years agoNot 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 mo...
- 5 years ago
Hi, Anonymous
According to your description, I can clearly understand your requirement, I think you can try my steps:
- Create a month column as the number type like this:
Month=Month([Date])- Create a calculated column like this:
Column = var _maxmonth= MAXX(FILTER(ALL('Table'),[Amount]<>BLANK()),[Month]) return SUMX(FILTER(ALL('Table'),[Month]=_maxmonth),[Amount])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.
v-robertq-msft
5 years agoCommunity Support
Hi, Anonymous
According to your description, I can clearly understand your requirement, I think you can try my steps:
- Create a month column as the number type like this:
Month=Month([Date])
- Create a calculated column like this:
Column =
var _maxmonth=
MAXX(FILTER(ALL('Table'),[Amount]<>BLANK()),[Month])
return
SUMX(FILTER(ALL('Table'),[Month]=_maxmonth),[Amount])
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.