March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |