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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
vennajx
New Member

Previous Value when the data is NULL for current selection

Hello,

I have just started with Power BI and I have a scenario but could not figure out the solution .Below is sample data.


When a user select any 'Start Date' in 2019 from the slicer, instead of showing blank for Product A it should show previous date avaliable price , in this case '50'. 

I have tried Earlier() and ISBLANK() to get this. @amitchandak @Greg_Deckler Any inputs to get this.

ProductStart DateEnd DatePriceApproved Date
A1/1/201811/11/2020506/11/2017
A11/12/20203/31/2021606/11/2017
A4/1/2021-706/11/2017
B1/1/2019-10012/5/2018
2 REPLIES 2
amitchandak
Super User
Super User

@vennajx , Try a measure like

 


measure =
var _1 = calculate(max(Table[Start_date]), allexcept(Table, Table[product]))
var _2 = sum(Table[price])
return
sumx(values(Table[Product]), if (isblank(_2) ,calculate(_2, filter(all(Table), Table[Date] =_1 )), _2))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I have tried this but unfortunately this doesn't help to resolve

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.