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
Solved! Go to Solution.
Hi @Howie_fishman ,
Thanks for Greg_Deckler's reply!
And @Howie_fishman , I have no idea what your data looks like, and the screenshot you provided is blurry, so I created sample data myself for testing:
Then use this DAX to create a measure:
3 day rolling post morts =
VAR Date1 =
MAX ( 'Calendar'[Date] )
VAR NextNonBlankDates =
TOPN (
3,
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] >= Date1
&& NOT ( ISBLANK ( [Mortality Count] ) )
),
'Calendar'[Date], ASC
)
VAR SumMortality =
SUMX (
NextNonBlankDates,
[Mortality Count]
)
RETURN
SumMortality
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Howie_fishman ,
Thanks for Greg_Deckler's reply!
And @Howie_fishman , I have no idea what your data looks like, and the screenshot you provided is blurry, so I created sample data myself for testing:
Then use this DAX to create a measure:
3 day rolling post morts =
VAR Date1 =
MAX ( 'Calendar'[Date] )
VAR NextNonBlankDates =
TOPN (
3,
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] >= Date1
&& NOT ( ISBLANK ( [Mortality Count] ) )
),
'Calendar'[Date], ASC
)
VAR SumMortality =
SUMX (
NextNonBlankDates,
[Mortality Count]
)
RETURN
SumMortality
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Howie_fishman First, try modifying your Value filter behavior to be Independent. Work with value filter behavior in Power BI - Power BI | Microsoft Learn
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!