Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi, @anusha_madhavan
Based on your information, I create a sample table:
Then create new measures, try the following DAX:
LastNonBlankEnabledRepos =
CALCULATE(
LASTNONBLANK('Table'[EnabledRepos], CALCULATE(SUM('Table'[EnabledRepos]))),
FILTER(
ALL('Table'),
'Table'[CalendarDate] <= MAX('Table'[CalendarDate])
)
)LastNonBlankNotEnabledRepos =
CALCULATE(
LASTNONBLANK('Table'[NotEnabledRepos], CALCULATE(SUM('Table'[NotEnabledRepos]))),
FILTER(
ALL('Table'),
'Table'[CalendarDate] <= MAX('Table'[CalendarDate])
)
)
Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @anusha_madhavan
Based on your information, I create a sample table:
Then create new measures, try the following DAX:
LastNonBlankEnabledRepos =
CALCULATE(
LASTNONBLANK('Table'[EnabledRepos], CALCULATE(SUM('Table'[EnabledRepos]))),
FILTER(
ALL('Table'),
'Table'[CalendarDate] <= MAX('Table'[CalendarDate])
)
)LastNonBlankNotEnabledRepos =
CALCULATE(
LASTNONBLANK('Table'[NotEnabledRepos], CALCULATE(SUM('Table'[NotEnabledRepos]))),
FILTER(
ALL('Table'),
'Table'[CalendarDate] <= MAX('Table'[CalendarDate])
)
)
Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @anusha_madhavan
Please refer to the linked video:
https://www.youtube.com/watch?v=qo_omRxgLSY
If my answer was helpful please give me a Kudos and accept as a Solution.
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!