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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Sudharsanan
Helper III
Helper III

Need to fill blank rows with previous month value

Hi All,

 

Could someone help me with the below scenerio please? The blank row should have the previous months value as shown in the expected column.

 

MonthPriceExpected Result
Jan 3939
Feb 39
Mar 39
Apr40.3140.31
May 40.31
June44.9744.97
July 44.97
Aug47.0247.02
Sep49.1349.13
Oct 49.13
Nov46.246.2
Dec 46.2
1 ACCEPTED SOLUTION

@Sudharsanan - Let me know if this DAX-based solution meets your requirement, then I'll post the pbix file.

Manoj_Nair_0-1670262325231.png

LookupTable = FILTER('Price Table', 'Price Table'[Price] >0)
Derived Price = 
VAR currmonth = MAXX(FILTER(LookupTable, LookupTable[MonthNumber] <= SELECTEDVALUE('Price Table'[MonthNumber])),LookupTable[MonthNumber])
VAR result = CALCULATE(MAX('LookupTable'[Price]), LookupTable[MonthNumber] = currmonth)
return result

 

View solution in original post

6 REPLIES 6
Manoj_Nair
Solution Supplier
Solution Supplier

@Sudharsanan - try this at the power query back end data - Let me know if this fix, then accept it as a solution. Microsoft document on fill down Many Thanks

Manoj_Nair_0-1670259315450.png

 

Thanks @Manoj_Nair i knew this earlier but i wanted to handle this using DAX

@Sudharsanan - Let me know if this DAX-based solution meets your requirement, then I'll post the pbix file.

Manoj_Nair_0-1670262325231.png

LookupTable = FILTER('Price Table', 'Price Table'[Price] >0)
Derived Price = 
VAR currmonth = MAXX(FILTER(LookupTable, LookupTable[MonthNumber] <= SELECTEDVALUE('Price Table'[MonthNumber])),LookupTable[MonthNumber])
VAR result = CALCULATE(MAX('LookupTable'[Price]), LookupTable[MonthNumber] = currmonth)
return result

 

Thanks @Manoj_Nair but am not sure what you are referring  as a  Lookup Table here. so pbix file will help me ?

@Sudharsanan - PBIX file attached

@Manoj_Nair  thanks for this

 

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors