Forum Discussion
Sudharsanan
Helper III
3 years agoNeed 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. Month Price Expected Result Jan 39...
- 3 years ago
Sudharsanan - Let me know if this DAX-based solution meets your requirement, then I'll post the pbix file.
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
Manoj_Nair
Solution Supplier
3 years agoSudharsanan - PBIX file attached
Sudharsanan
Helper III
3 years ago