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! Learn more
Hi all,
I meet the issue when deal the data with some date and milestone information.
First, I build two tables, one is the Calendar table, the other is about some date of milestone.
#Milestone table:
Then, I build relationship between the tables, and I need to fill down the milestone value to the Calendar table.
The dax formula as below:
I don't know why the formula goes wrong, please helps to figure out.
Another request for the formula is to stop fill down milestone value when detect "finish".
I have attached the file, thanks.
Solved! Go to Solution.
Column = 
    VAR __Date = [Date]
    VAR __Max = MAXX(FILTER('Calendar',[Date]<=__Date && NOT(ISBLANK([Milestone]))),[Date])
    VAR __Milestone = MAXX(FILTER('Calendar',[Date]=__Max),[Milestone])
RETURN
    IF(__Milestone <> "finish",__Milestone,IF(__Max = __Date,__Milestone,BLANK()))
TI = bad.
@Roy_W 
Can you check the attached file?
⭕  Subscribe and learn Power BI from these videos
 ⚪ Website ⚪  LinkedIn ⚪  PBI User Group 
@Fowmy 
The result is not expected, I need the milestone change to next one,
The value under finish should be "finish" to the end, not "m3".
And another requirement is to stop fill down milestone value when detect "finish".
Thanks
Column = 
    VAR __Date = [Date]
    VAR __Max = MAXX(FILTER('Calendar',[Date]<=__Date && NOT(ISBLANK([Milestone]))),[Date])
    VAR __Milestone = MAXX(FILTER('Calendar',[Date]=__Max),[Milestone])
RETURN
    IF(__Milestone <> "finish",__Milestone,IF(__Max = __Date,__Milestone,BLANK()))
TI = bad.
@Roy_W You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Specifically: To **bleep** With FIRSTNONBLANK - Microsoft Power BI Community
These are based on this article:
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.