Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Issue:
DAX should check until previous value is 0 (In Value), once its value is not 0 it gives me the date (Result Needed) as below.
Solved! Go to Solution.
Hi @pras_hant10
try a measure
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
almost the same
Result =
var _curDate = Table[Date]
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
Hi @pras_hant10
dealing with a measure
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
Hi @pras_hant10
dealing with a measure
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
@pras_hant10 , Try like
if(Table[Invalue]=0,maxx(filter(Table, table[Date]<earlier(Table[Date])),Table[Date]),Table[Date])
I tried the same, but bellow result I am getting.
Result should be 01/02/2020 from row 2nd till last, as there is 0 In value.
Try
if(Table[Invalue]=0,maxx(filter(Table, table[Date]<earlier(Table[Date]) && Table[Invalue]=0),Table[Date]),Table[Date])
Hi @pras_hant10
try a measure
Result =
var _curDate = MAX(Table[Date])
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
Thanks for your help, by my apologies, I am looking the logic for Column field.
almost the same
Result =
var _curDate = Table[Date]
RETURN
CALCULATE(MAX(Table[Date]); FILTER(ALL(Table); Table[Date] <= _curDate && Table[InValue] <> 0))
Thank you. it work
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.